How to iterate through the issues in an epic?


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

Thank you and best regards

Markus Baier


3 answers

1 accepted

Hi Markus,

Try this:

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



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}

I hope this helps you.

Best regards,




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')}}



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

Debug line 1

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




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

Debug line 2

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









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


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

361 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you