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 votes
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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,789 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot