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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

81 views 0 5
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