Hi, i'm struggling with making the right scrumboard filter-query. I want to see all open story's and there underlaying subtasks. I now use:

Team = "Team Self Service" AND status not in (Closed,Done,Resolved)

The downsite is that i don't see subtasks with status Closed, Done or Resolved.

How can the query be formed so i only see story's that are still open but it shows all underlaying subtasks, no matter there status.

1 answer

0 votes

Hello,

You would need an add-on like Adaptivist ScriptRunner or Power Scripts. If you have Adaptivist scrptrunner you could write a JQL quiery like this

(Team = "Team Self Service" AND status not in (Closed,Done,Resolved)) or (issueFunction in subtasksOf("Team =\ "Team Self Service\" AND status not in (Closed,Done,Resolved)"))

If you have Power Scripts then you could create your own JQL function(for example, subtasks.sil) with a code like this

string [] keys = selectIssues(argv[0]);
string [] ret;
for(string k in keys) {
   if (size(subtasks(k)) > 0) {
         ret += k;
   }
    
}
return ret;

And then you could call it like this

key in silJQLList("subtasks.sil", "Team = \"Team Self Service\" AND status not in (Closed,Done,Resolved)"

You can find more examples on JQL functions in Power Scripts here

https://confluence.cprime.io/display/TR/Advanced+JQL+Searches

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

17,662 views 18 20
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