Forums

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

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

Dalectric
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2017

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
Answer accepted
Tarun Sapra
Community Champion
August 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"))
Dalectric
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2017

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

Tarun Sapra
Community Champion
August 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")
Dalectric
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2017

Thanks, that's also useful info

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events