ScriptRunner Enhanced Search - Get issues with linkes issues matching a specific condition

Hans Hugo February 27, 2024

Hi,

we migrated from Jira Server to Jira Cloud.

A filter query we used with Jira Server was something like this:

project = ABC and issue IN linkedIssuesOf("project = DEF and resolution = Unresolved")

It returned all issues from project ABC which have a linked issue to project DEF which has a resolved resolution.

With Jira Cloud we have to use the Enhanced Search feature which provides a JQL Function "linkedIssuesOf": https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#linkedissuesof

But this function does not match our needs because it will return the linked issues itself matching the condition.

Is there a way to write a query similar to the Jira Server version (which returns issues from project ABC instead of DEF) with Jira Cloud / Enhanced Search? Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Kate Kabir
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.
February 27, 2024

Hi @Hans Hugo 

Potentially, you can try the below JQL search example as a guide:

issueFunction in linkedIssuesOf("Project = T2 AND resolution = Done") AND Project = STRAW 

The example above will show all the issues from Project = STRAW containing linked issues related to Project = T2.

Can you try this and see how it goes?

I hope this helps. :)

Kind Regards

Kate

 

Hans Hugo February 27, 2024

Thx, it works. But complex queries will always run in the 30 sec timeout :(

Jasmin Bateman February 27, 2024

Hi @Hans Hugo

Please raise a support ticket with our support team here: SR4JC support so we can get some more information regarding your JQL query and hopefully help you to resolve the 30 second timeout issue.

Kind regards,

Jasmin

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events