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
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
The feature parity document says the function is not supported for Cloud.
The the actual list of functions for Enhanced Search for Jira Cloud does list the function as available:
It is a bit confusing to have the document contradicting itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy,
I checked and the document does mark linkedIssuesOfRecursive as available in Cloud.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, yes, my mistake!
It is linkedIssuesOfAllRecursive that is marked as unavailable.
I apologize. Mea culpa!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.