Retrieve all folders summaries of current project
No outside loop necessary, just run it.
Code Block |
---|
[[\each $selectedProject]] [[\recurse $.folders]] [[$.numbering]] [[$.]] [[/recurse]] [[/each]] |
Render Description field
Converts the Jira internal markup language to nice formatting. “$.” is the issue given from an loop around this statement.
Code Block |
---|
[[\wiki $.description]] [[/wiki]] [[\if $.description = “”]]No Description availaible[[/if]] |
Iterate over all Labels of an issue
Code Block |
---|
[[\if $.labels.count > 0]] Labels: [[\each $.labels]] • [[$.]] [[/each]] [[/if]] [[\if $.labels.count = 0]]Labels: No Labels available [[/if]] |
You can replace $.labels
by $.children
or $.attachments
to get other multi value field content.
Iterate over all linked issues
You receive all issues linked to current, also you get issues inside a epic. The variable “link_type_name” is used to detect all different link types.
Code Block |
---|
[[\if $.linkedissues.count > 0]] [[\variable.link_type_name “”]][[/variable]] Issuelinks: [[\each $.linkedissues]] [[\if $.name <> $variable.link_type_name]] [[$.name]] [[/if]] [[$.issue.key]] - [[$.issue.summary]] [[\variable.link_type_name $.name]][[/variable]] [[/each]] [[/if]] [[\if $.linkedissues.count = 0]]Issuelinks: No Issue Links available[[/if]] |
Iterate over all comments
Code Block |
---|
[[\if $.comments.count > 0]]
Comments:
[[\each $.comments]]
On [[$.updated]] by [[$.updater.displayname]]:
[[\wiki $.]] [[/wiki]]
[[/each]]
[[/if]]
[[\if $.comments.count = 0]] Comments: No Comments available [[/if]] |
Iterate over all issue revisions and identify certain change
Start is an issue itself, search in this case for a status change to “Approved”:
Code Block |
---|
[[\each $.revisions]] [[\variable.revNo $.number]][[/variable]] [[\variable.revAuth $.user]][[/variable]] [[\variable.revDate $.date]][[/variable]] [[\each $.fields]] [[\if $.field = “Status”]] [[\if $.changed = “true”]] [[\if $.newvalues.toString = “Approved”]] Revision #[[$variable.revNo]] Approver: [[$variable.revAuth]] Approved Date: [[$variable.revDate]] Field: [[$.field]] Changed: [[$.changed]] Old Value: [[$.oldvalues.toString]] New Value: [[$.newvalues.toString]] [[/if]] [[/if]] [[/if]] [[/each]] [[/each]] |