How Do I Use ScriptRunner linkedIssueOf to List Issues Where All Linked Issues Are Resolved?

I want to use the ScriptRunner function linkedIssueOf to list all issues which have linked issues that are all resolved.

I've tried the following

 issueFunction in linkedIssuesOf("resolution != Unresolved")

but it lists issues which still have unresolved linked issues as well.

1 answer

1 accepted

1 vote
Tarun Sapra Community Champion Aug 23, 2017

This works fine, for fetching issues which have *all* the linked issues as resolved.

issueFunction in linkedIssuesOf("resolution is not empty") and !(issueFunction in linkedIssuesOf("resolution is empty"))

Perfect, many thanks for the quick reply. I hadn't considered checking against empty :-)

Tarun Sapra Community Champion Aug 23, 2017

Sure welcome! Just in case if you want to fetch issues which have partially resolved linked issues i.e. if 2 out of 4 linked issues are resolved then you can drop of the second part of the query and use only

issueFunction in linkedIssuesOf("resolution is not empty")

Thanks, that's also useful info

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 Apr 17, 2018 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...

818 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