How can we search (jql) for issues that contain certain field values for their respective epics?

For example. I want to create a pie chart of all issues that have an epic defined and whose "roadmap" value is "2016-Q2" and partition by epic-time-remaining. Highly useful but currently not supported AFAIK by JQL. I can search overall, but "by roadmap" seems impossible for now.

project = FOO AND "Epic Link" is not EMPTY AND resolution = Unresolved ORDER BY <blah> ASC

Should be

project = FOO AND "Epic Link" is not EMPTY AND "Epic Roadmap"="2016-Q2"  AND resolution = Unresolved ORDER BY <blah> ASC

1 answer

You need the advanced ScriptRunner JQL functions.

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

Your JQL should look something like this:

Project = FOO AND issueFunction in linkedIssuesOf("roadmap = 2016-Q2", "is Epic of")

Just buy the plugin and play with it. It's awesome.

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...

240 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