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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,417 views 15 19
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