Ho to seach for linked issues? Fieldname and linked issue type


Jira 5xx

We linked some issues from other projects in one mainproject. The linked issues available in filters but we can't seach about the linked issues.

Esp. we need a seach like that

project = aaa and linked issues in type cloners and status of linkedissues = closed

is ist possible to seach:

- linked issues

- linked issue type

- status of the linkes issue?

thx stephan

4 answers

Hi Stephan,

We use the Script Runner plugin. There you get some JQL functions like: hasLinks(...) or hasLinksTypes(...).

But to do what you want to do we use a custom JQL function created with use of Script Runner.

There is a possibility to use Groovy and JIRA API to search for almost all combinations you would like to.

Read more here: https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner

It looks good, i will try it.

Thank you Stephan


Script Runner works fine.

But the Query ends after ~1985 Signs.

I use " ....OR issueFunction in linkedIssuesOf("status = 'im Test'", "ist Voraussetzung für") OR ..." to check some status in the linking issue.

I didn't find a Solultion for a Query with muliti select like:

"OR issueFunction in linkedIssuesOf("status in 'im Test' , closed", "ist Voraussetzung für")"

With a multiselect Query i didn't have the problem with the 1985 Signs :-)
I will check ~25 different Status (i know it is many Status, but they are in x different Workflows) in one Query.

Thanks Stephan

Create a filter with all your required status like

status in ('im Test', closed)

save this filter (e.g status-filter)

and use that filter in your original query

"OR issueFunction in linkedIssuesOf("filter = status-filter", "ist Voraussetzung für")"

Hi Udo,

thank you for the Solution!!

Best regards


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,815 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