using in with linkedIssuesOf and fixversion

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

This widget could not be displayed.

You're missing a " in that query

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

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)

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)--

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")

You have a minor typo in your query.

The following works for me

issueFunction in linkedIssuesOf('fixVersion in ("1.0", "1.1")', 'depends on')

working now, thank you!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 16 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

42 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you