I'm trying to return a search in Jira for:
All issues in project 1, where more than one issue of ISSUETYPE2 in project 2 are linked to it.
So far I have:
project = "PROJECTKEY1" AND issuetype = ISSUETYPE1 AND status not in (Done, Closed) AND issueFunction in linkedIssuesOf("issuetype = ISSUETYPE2 and project = PROJECTKEY2")
But the one above returns results for where one linked issue matches the criteria, not more than one.
Any help would be appreciated.
Thanks
Hi @James Croft ,
There are no extra JQL functions that will get you closer to your needs, even in ScriptRunner or JQL Booster Pack.
However, there's a workaround for helping getting issues with two or more issue links:
After following these steps, your Excel filte will be showing just those issues with more than one linked issue.
You may want to copy the Issue Key column, in order to show the results again in the issue navigator with a query like:
key in (KEY-1, KEY-2, KEY-3...)
You may also perform a bulk edit operation on those issues in order to label them for finding them easier on next searches, but always having in mind that those results will eventually get obsolete over time.
Hope it helps.
Hey Ignacio,
Thank you for the detailed reply. I had to adapt this slightly as a workaround as it appears some linked issues in the project have been done using inward links and others using outward links, so I ended up hitting another wall with this Bug (outward issue links bug)
Exporting as HTML is the way to go, but still takes a fair bit of data manipulation to show the results and isn't as easy for end users to do on a regular basis.
Cheers,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James,
Sorry to hear that! An the workaround suggested in that issue is even more complex for end users...
Mmm... as you count with ScriptRunner, you may create a a Scripted Field which retrieved the number of issue links.
Fortunately, the Adaptavist Library counts with such a scripted field:
https://library.adaptavist.com/entity/number-of-linked-alerts-itsm
You'll need to adapt the code of that page to your needs.
Hope it helps.
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.