Forums

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

using in with linkedIssuesOf and fixversion

Gianni Pucciani
Contributor
August 12, 2015

Hello,

I am using the ScriptRunner JQL function linkedIssuesOf to do something like this:

issueFunction in linkedIssuesOf("fixVersion in ("1.0", "1.1")", linkname)

but getting the JQL error  " Error in the JQL Query: Expecting ')' or ',' but got '1.0'.

Does this function support the IN operator or just "=" as in the examples of the doc?

Thanks in advance for your help.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -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 12, 2015

You're missing a " in that query

Gianni Pucciani
Contributor
August 12, 2015

Thanks, sorry was an error in the post, I corrected the post.

Nic Brough -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 12, 2015

I think it's still the punctuation in there - break it down by line breaks instead of quotes, and you get issueFunction in linkedIssuesOf( "fixVersion in (" 1.0 ", " 1.1 ")" , linkname) As you can see, the third line is not a clause, it's just a string. I'd try issueFunction in linkedIssuesOf(fixVersion in ("1.0", "1.1"), linkname)

Gianni Pucciani
Contributor
August 12, 2015

Thanks Nic, but if I copy/paste your line in JQL I still get the error: --Error in the JQL Query: Expecting ')' or ',' but got 'in'. (line 1, character 44)--

Nic Brough -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 12, 2015

Ah, I think I have it. Sorry, I should have looked for that more closely issueFunction in linkedIssuesOf("fixVersion in ('1.0', '1.1')", "blocks")

Nick
Contributor
August 14, 2015

You have a minor typo in your query.

The following works for me

issueFunction in linkedIssuesOf('fixVersion in ("1.0", "1.1")', 'depends on')
Gianni Pucciani
Contributor
August 23, 2015

working now, thank you!

Suggest an answer

Log in or Sign up to answer