Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

issue in linkedIssues usage to get linked issues to multiple parent issues

Geetha
Contributor
February 25, 2019

issue in linkedIssues(ABC-123,ABC-234,ABC-345)  This format does not work. Is there a way to print out all linked issues under these multiple main epics ?

issue in linkedIssues(ABC-123) or issue in linkedIssues(ABC-234) works but that is tideous if you need to use many. 

 

Any hints ?

4 answers

1 accepted

3 votes
Answer accepted
Geetha
Contributor
February 25, 2019

Thanks to both . Not sure why hasLinks and linkedissuesFromQuery is not working for me(may be the power script add-ons are missing) . Rightnow I am using  

issue in (linkedIssues(ABC-123),linkedIssues(ABC-234),linkedIssues(ABC-345)) and it works. 

Will find out about the above add-on from my team as the above options are much simpler.

Thanks

Priya

0 votes
SUVARNA Dixit
Contributor
March 14, 2024

If we dont want to hardcode the issue number then how subquery will work ?

 

0 votes
Dominic Lagger
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 25, 2019

Hey

In the linkedIssue search you can just put 2 parameters, which are first key and second LinkType. Described here in detail:

We use a Plugin called "Search Linked Issues":

issue in linkedIssuesFromQuery("key in (ABC-123, ABC-234)")

This searches all issues, which are linke with one of those keys. 

0 votes
Alexey Matveev
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 25, 2019

Hello,

If you do not want it to be tedious, you would need an add-on.

There are multiple add-ons, which can help you: Power Scripts, ScriptRunner, JTricks, JQL extenstions for Jira.

If you want to use the Power Scripts add-on, then your JQL would look like this:

key in hasLinks("key in (ABC-123, ABC-234)")

Suggest an answer

Log in or Sign up to answer