In active sprints can we see epic links and sub-tasks to related to each story?

I gave JQL query as - project = ABC AND "Epic Link" = ABC-290 ORDER BY Rank ASC in these case I am not able to see sub tasks related to story on the active sprint. How do I need to see both Epic Link and sub tasks?

1 answer

0 vote
Alexey Matveev Community Champion Jan 03, 2018

Hello,

I guess you can not do it out of the box.

1. If you have Power Scripts add-on, you could create a script like that

string [] keys = selectIssues("\"Epic Link\" = " + argv[0]);
string [] ret;
for(string k in keys) {
    for (string sk in subtasks(k)) {
        ret += sk;
        
    }
}
return ret;

And then you should write a JQL query like this

 project = ABC AND ("Epic Link" = ABC-290 OR key in silJQLList("jqlGetEpicStorySubTasks.sil", ABC-290))

2. If you have AdaptivistScriptRunner then you could do it with subtasks JQL function. You can find more information here

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_subtasksof

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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

758 views 2 19
Join discussion

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