Forums

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

JQL Tricks hasLinks() query not working

Jennifer Nusbaum August 10, 2018

I am attempting to use this query:

issuetype IN standardIssueTypes() AND issue in hasLinks("Blocked")

 

It is returning this error:

 

Error in the JQL Query: Expecting either 'OR' or 'AND' but got ''. (line 1, character 65)

 

What am I doing wrong?

 

1 answer

1 accepted

0 votes
Answer accepted
Moses Thomas
Community Champion
August 10, 2018

@Jennifer Nusbaumthere is nothing  like "Blocked"  like this should work

 issuetype IN standardIssueTypes() AND  issue in hasLinks("is blocked by")

OR

issuetype IN standardIssueTypes() AND issue in hasLinks("blocks")

 

Best!

Jennifer Nusbaum August 10, 2018

Hi, thank you for replying.  I get the same error when I use hasLinks("blocks")

Jobin Kuruvilla [Adaptavist]
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.
August 10, 2018

@Jennifer NusbaumWhere are you seeing this error? If you are seeing it in the UI, you might have an unwated character somewhere in the JQL. Maybe you can add a screenshot here?

Or you can try copy pasting the JQL @Moses Thomaspasted above and see if you getting the same error.

Even if you use an invalid linktype name, you shouldn't get the error you mentioned. You should get a different error.

Jennifer Nusbaum August 10, 2018

It was absolutely that.  There was a hidden character in my query.  Thank You!

Jobin Kuruvilla [Adaptavist]
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.
August 10, 2018

@Jennifer NusbaumGood to know :)

Suggest an answer

Log in or Sign up to answer