Alternative idea to linkedIssuesOfRecursive

Friedrich Behnk March 8, 2024

Hi all,

I need to get all linked issues of an issue like "linkedIssuesOfRecursive" from Scriptrunner.

E. g.: 

linkedIssuesOfRecursive("issuetype = Project and assignee = currentUser()", "is parent of")

My point is that we only have the "Extended Search" app.

Does anyone have any idea how to solve my challenge?

Best regards,

Friedrich

2 answers

1 accepted

1 vote
Answer accepted
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

Hi Frederich,

I can confirm if you have ScriptRunner for Jira cloud installed, this can provide the linkedIssuesOfRecursive function you require.

Once you have defined your filter on your enhanced search page, you can use it inside regular Jira in places like filters, boards and dashboards by following the steps below.

1. Save the filter and share it (This creates a copy of the filter as a standard Jira filter where we synchronise the list of issue keys returned by the enhanced search filter.)

2. Navigate to the area where you need to use this filter JQL and reference your filter in the JQL box using the JQL like below.

filter='NameOfHisSharedESFilter'

I don't know of any other way to achieve this query without a plugin like ScriptRunner.

If you want just the enhanced search JQL functions without the rest of the scriptRunner functionality, then we have the standalone Enhanced Search app that provides these at a smaller cost.

I hope this helps.

Regards,

Kristian

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

@Kristian Walker _Adaptavist_ 

The feature parity document says the function is not supported for Cloud.

https://docs.adaptavist.com/sr4jc/latest/differences-between-scriptrunner-for-jira-server-and-jira-cloud/feature-parity

The the actual list of functions for Enhanced Search for Jira Cloud does list the function as available:

https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#linkedissuesofrecursive

 

It is a bit confusing to have the document contradicting itself.

Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

Hi Trudy,

I checked and the document does mark linkedIssuesOfRecursive as available in Cloud.

Regards,

Kristian

Like Emily Moulder likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

Ah, yes, my mistake!

It is linkedIssuesOfAllRecursive that is marked as unavailable.

I apologize. Mea culpa!

0 votes
Friedrich Behnk March 13, 2024

Thank you very much for your efforts. Unfortunately, you have confirmed my suspicions.
I have found a solution. It's not really elegant, but it works for me. (I need a maximum of three levels)

I have nested two queries inside each other.

Basic query:

issue IN linkedIssuesOfQuery("issuetype = Project and assignee = currentUser()", "is parent of")


My projects and childs:

issue IN linkedIssuesOfQuery("filter = 'My Projects and childs sub'", "is parent of") or issue IN linkedIssuesOfQuery("issuetype = Project and assignee = currentUser()", "is parent of") or issuetype = Project and assignee = currentUser()

 Have fun

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