New feature for Cross Platform Release notes - get parent and child work items

I have added another new feature to my Cross Platform release note generator. Now, when using Handlebars based templates you can optionally get the parent or child work items for any work item associated with build/release

To enable the feature, as it is off by default, you need to set the  getParentsAndChildren: true parameter for the task, either in YAML or in the handlebars section of the configuration.

This will add an extra array that the template can access relatedWorkItems. This contains all the work items associated with the build/release plus their direct parents and children. This can then be accessed in the template

 1{{#forEach this.workItems}}
 2
 3{{#if isFirst}}### WorkItems {{/if}}
 4
 5\* \*\*{{this.id}}\*\*  {{lookup this.fields 'System.Title'}}
 6
 7\- \*\*WIT\*\* {{lookup this.fields 'System.WorkItemType'}} 
 8
 9\- \*\*Tags\*\* {{lookup this.fields 'System.Tags'}}
10
11\- \*\*Assigned\*\* {{#with (lookup this.fields 'System.AssignedTo')}} {{displayName}} {{/with}}
12
13\- \*\*Description\*\* {{{lookup this.fields 'System.Description'}}}
14
15\- \*\*Parents\*\*
16
17{{#forEach this.relations}}
18
19{{#if (contains this.attributes.name 'Parent')}}
20
21{{#with (lookup\_a\_work\_item ../../relatedWorkItems  this.url)}}
22
23      - {{this.id}} - {{lookup this.fields 'System.Title'}} 
24
25{{/with}}
26
27{{/if}}
28
29{{/forEach}} 
30
31\- \*\*Children\*\*
32
33{{#forEach this.relations}}
34
35{{#if (contains this.attributes.name 'Child')}}
36
37{{#with (lookup\_a\_work\_item ../../relatedWorkItems  this.url)}}
38
39      - {{this.id}} - {{lookup this.fields 'System.Title'}} 
40
41{{/with}}
42
43{{/if}}
44
45{{/forEach}} 
46
47{{/forEach}} 

This is a complex way to present the extra work items, but very flexible.

Hope people find the new feature useful.