Forums

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

How can i filter all tickets that has more than 5 links(attached pic)

moad boutahor
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!
April 13, 2022

Hi, 


I tried this :  AND issueFunction in hasLinkType("Actions/Prestataire")

this show me all tickets that has at least one action linked

But i'm looking to do a jql filter to have only tickets that has more than 5 actions linked(actions Moussanada)

Capture d’écran 2022-04-13 100919.png

 

 

1 answer

1 accepted

0 votes
Answer accepted
Payne
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.
April 13, 2022

You can supply a second argument to hasLinks() to indicate an exact or  minimum number of links, e.g.

hasLinks("blocks", "+5")

See https://docs.adaptavist.com/sr4js/6.48.1/features/jql-functions/included-jql-functions/issue-links#hasLinks

moad boutahor
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!
April 14, 2022

When i do that it give me this error message : 

The 'hasLinkType' function expected to receive '0' and '1' arguments but received '2'.

 

Same problem with hasLink

Payne
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.
April 14, 2022

It's hasLinks (plural) - not hasLink or hasLinkType. Please refer to the documentation link that I included.

Suggest an answer

Log in or Sign up to answer