Scriptrunner - List Issues With Links To Other Projects

Hi,

I'm trying to use ScriptRunner to identify all non-Done issues with links to non-Done issues in external projects.  So far, I have this.

issueFunction in hasLinks() AND statusCategory != Done

 

I can't find how to limit results only to links going to other projects and only to non-Done issues.

 

Bonus Points:

When showing the results on a Jira dashboard or Confluence, how would I show the project of the external issue?

1 answer

1 accepted

You could do something like this where PROJECT_NAME is the project name of the project you dont want.

issueFunction IN linkedIssuesOf("statusCategory != Done AND project != PROJECT_NAME") AND statusCategory != Done

 

Thanks.  This is essentially where I landed:

project = "myProject" and issueFunction IN linkedIssuesOf("statusCategory != Done AND project != myProject") AND statusCategory != Done

 

This will show me everything in myProject with links outside of myProject.

Jira has a Links column which shows the key but that's not very helpful without the linked project and linked summary.

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 Tuesday 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...

139 views 1 17
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