How to iterate through the issues in an epic?

Markus Baier August 4, 2015

Hi,

I would like to iterate through the issues in an epic. How can I do this?

Thank you and best regards

Markus Baier

IssuesInEpic.png

3 answers

1 accepted

2 votes
Answer accepted
Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2015

Hi Markus,

Try this:

#{for i=JQLIssuesCount|clause= issue in linkedIssues ('${Links[n].Key}')}
Debug line 2
${JQLIssues[i].Key} - ${JQLIssues[i].Summary}
#{end}

Cheers,

RMRodrigues.

2 votes
Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2015

Hi Markus,

You can get those issues by filtering the issue link type.

Try this example:

#{for links| filter=%{‘${Links[n].LinkType}’.equals(‘is Epic of’)}}
${Links[n].Key} - ${Links[n].Summary}- ${Links[n].LinkType}
#{end}

I hope this helps you.

Best regards,

RMRodrigues.

0 votes
Markus Baier August 4, 2015

Hi,

 

thank you very much your quick help. This seems to be fixed now.

Please additionally let me know if it’s possible to iterate to the links of a linked issue.

 

Currently my template looks this way:

 

User Manual

&{for issues|filter=%{'${IssueTypeName}'.equals('Epic')}}

${wiki:Summary}

${wiki:Description}

#{for n=LinksCount|filter=%{‘${Links[n].LinkType}’.equals(‘is Epic of’)}}

Debug line 1

#{if (%{'${Links[n].IssueTypeName}'.equals('Story')})}

${wiki:Links[n].Summary}

${wiki:Links[n].Description}

 

#{for k=Links[n].LinksCount}

Debug line 2

#{if (%{'${Links[k].IssueTypeName}'.equals('New Feature')})}

${wiki:Links[k].Summary}

${wiki:Links[k].Description}

#{end}

#{end}

#{end}

#{end}

&{end}

 

Unfortunately “Debug line 2” is never printed although there are “New feature” issues linked via “relates to” to their corresponding user story which are printed.

 

Best regards

Markus

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events