Hi,
I am looking to figure out how to traverse through a list (in this case, "issuelinks" and:
a) Count the total number of inward links
b) Count the number of inward links that have a status of done
I know how to:
- Count the # of inward links, using:
{{issue.issuelinks.inwardIssue.size}}
- Identify the status of each inward link, using:
{{#issue.issuelinks.inwardIssue.fields.status}}{{name}}{{/}}
- Determine if that status of an inward link is Done using; {{#issue.issuelinks.inwardIssue.fields.status}}{{name.equals(“Done”)}}{{/}}
But, I am unable to figure out how to count the # that are not Done. Ultimately, I want to set counters (custom fields) with following values: Count of Incoming Links that are Open, Count of Incoming Links that are Done and display these in Jira Dashboards.
Any ideas?
Thanks,
Doug