Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Find Issues where all "Depends On" issues are Done

Jonathan Mitchem
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2023

I've found bits and pieces but haven't yet been able to put them together.

I would like to be able to query all issues that:

  • have a "depends on" link
  • where every linked "depends on" issue is Completed/Done/Resolved/Closed

 

The idea is to identify all tickets that can now be worked on, based on dependencies being completed.

Can this be done with JQL in stock Jira?  Can it be done with ScriptRunner?

1 answer

0 votes
Andrew Wolpers January 24, 2023

Howdy Jonathan,

Using Scriptrunner, you could do something like: 

issuefunction in linkedIssuesOf("issueFunction in linkedIssuesOf('statusCategory = Done')","Relates To")

The first IssueFunction is looking for results of the `linkedIssuesOf` issuefunction, where we're ensuring everything is in a Done statusCategory that is using the `Relates To` link type. 

Here's Adaptavist's documentation with a heap of other examples of how you can use issuefunctions in your JQL: https://docs.adaptavist.com/sr4js/latest/features/jql-functions/included-jql-functions/issue-links 

Hope it helps! 

Suggest an answer

Log in or Sign up to answer