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
Try something like:
created >= -90d AND linkType="duplicates" order by created DESC
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the ScriptRunner site but no information how to install the app
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In order to add apps to your Cloud instance, check out Atlassian documentation on that topic. You need to have administrator rights for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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', ... ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are absolutely right, my bad. That should be a comma (,)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you should double check outward link description for Duplicate.
Can you try below one?
issueFunction in hasLinkType("duplicates")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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. |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.