Forums

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

Quick filter on Issue Link type (e.g. Duplicate)

Wim Horstman November 16, 2018

I would like to set a Quick filter in Jira Cloud on the LinkType "Duplicate"

What is the correct filter for this.

I tried  the following:

hasLinkType(link type)
issueFunction in hasLinkType("Duplicate")

 LinkType='Duplicate'

 

All without success

 

Who can help me

Wim Horstman

3 answers

0 votes
Steve Alston
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2023

Try something like:

created >= -90d AND linkType="duplicates" order by created DESC

0 votes
Walter Buggenhout
Community Champion
November 16, 2018

Hi @Wim Horstman,

Be aware that this type of search is not native to Jira and requires you to have an app installed that enables this type of search. issueFunction in ... is related to ScriptRunner. So assuming that you have ScriptRunner installed, you could search like this:

issueFunction in linkedIssuesOf("status = Open", "Duplicate")

(the above requires a subquery)

issueLinkType = 'Duplicate'
Wim Horstman November 16, 2018

Where can I find the app ScriptRunner?  Is it free?

Wim Horstman November 16, 2018

I found the ScriptRunner site but no information how to install the app

Walter Buggenhout
Community Champion
November 16, 2018

You can find it on the Atlassian Marketplace. It is a commercial app, so it is not free. If that is a concern, you can search the marketplace for other alternatives, like in this example (searching for linked issues)

Walter Buggenhout
Community Champion
November 16, 2018

In order to add apps to your Cloud instance, check out Atlassian documentation on that topic. You need to have administrator rights for that.

Wim Horstman November 16, 2018

ScriptRunner installed

I use: 

issueLinkType = 'duplicates'

Syntax is correct but the Quick filter does not give the expected result.

There are several issues with Issue Links of the type Duplicate but the filter gives zero results.......

What do I do wrong?

Walter Buggenhout
Community Champion
November 16, 2018

That's hard to tell without being able to see your data. Can you have a look at an issue that you would expect to see in the filter results and verify how exactly the name of the link is displayed?

Is it 'Duplicates', 'duplicate', ... ?

Wim Horstman November 16, 2018

Example Issue link Jira.jpg

Walter Buggenhout
Community Champion
November 16, 2018

I tried a similar search on our own instance and get results with both of these options:

issueFunction in LinkedIssuesOf("Project = WhereYourIssuesComeFrom";"is duplicated by")

and

issueFunction in LinkedIssuesOf("Project = WhereYourIssuesComeFrom";"duplicates")

I recommend you try to get the search right in issue navigator (issue search) first and define the quick filter afterwards, once you are sure about the correct syntax. 

Wim Horstman November 16, 2018

This doesn't work for me:

 

This is the feedback 

Error in the JQL Query: The character ';' is a reserved JQL character. You must enclose it in a string or use the escape '\u003b' instead. (line 1, character 50)

Walter Buggenhout
Community Champion
November 16, 2018

You are absolutely right, my bad. That should be a comma (,)

Wim Horstman November 16, 2018

Sill no success

This is the quick filter I created

issueFunction in LinkedIssuesOf("Project = PROJECT NAME","duplicates")

(I don't want to disclose the Project name)

This is the feedback:

Field 'issueFunction' does not exist or you do not have permission to view it.

0 votes
Mesut Yilmazyildirim
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.
November 16, 2018

I think you should double check outward link description for Duplicate.

Can you try below one?

issueFunction in hasLinkType("duplicates") 
Wim Horstman November 16, 2018

Thanks for the quick reply

What do you mean by "double check outward link description" Do you mean the correct spelling?  If so: I checked that. 

Unfortunately your suggestion doesn't work:

 

Field 'issueFunction' does not exist or you do not have permission to view it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events