Forums

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

Need a jquery to display all the clone issue and the same query should ignore all the other links

DM October 4, 2018

Need a jquery to display all the clone issue under 'links' and the same query should ignore all the other links eg: 'relates to' , discovered while testing' etc

2 answers

0 votes
Michael Veit September 22, 2021

Alexey's suggestion returns nothing for me. 
Not a syntax problem, just does not return anything.

A minor change, *DOES* return all clones of a specific issue.
issue in linkedIssues (ABC-123) and issueLinkType in ("clones")


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.
October 4, 2018

Hello,

In the OOB Jira you could use the following JQL query:

issue in linkedIssues(ABC-123,"clone")

This query would show you all cloned issues for ABC_123 issue.

This query is not flexible because it shows results only for one issue. If you want a more flexible solution, you need an add-on.

For example, you could use the JQL Search Extensions for Jira add-on.

https://marketplace.atlassian.com/apps/1214791/jql-search-extensions-for-jira?hosting=cloud&tab=overview

You could write a JQL query like this:

issue in links("clone""project = TEST")

This query would show all issues, which are placed in the TEST project and have the Cloned link.

DM October 4, 2018

I'm getting the below error for the above query

Issue link type 'clone' could not be found in function 'linkedIssues'.

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.
October 4, 2018

Try like this:

issue in linkedIssues(ABC-123,"clones")

Suggest an answer

Log in or Sign up to answer