ScriptRunner Issue Picker searcher not supporting "in", "is" operators?

Roman Kharytonov October 3, 2019

Looks like ScriptRunner doesn't fancy some collection functions in JQL. 

For example, a query:

project = ABC and "Project Link" is NOT EMPTY

would produce an error "The operator 'is not' is not supported by the 'Project Link' field."

 

On the other hand this JQL works fine and basically produces the expected results

project = ABC and "Project Link" != ABC-0001

 

where "Project Link" is my customField of IssuePicker type with single value select

 

While this particular workaround solves "is not empty" case, the other function i.e. "in (<subset>)" doesn't work.

 

I suspect that " Issue Picker searcher" component is broken/incomplete. Anybody else ran into the same problem?

2 answers

1 vote
Michael Spoonauer December 12, 2019

If you have a license for ScriptRunner and its JQL functions, then an equivalent to the "IS EMPTY" clause for those that really need to know whether it's empty could be:

issueFunction in issueFieldMatch("", "Name of Your Issue Picker Field", "^$") 

At least this appears to work for me.

Thanks,
Mike 

0 votes
Kat Warner
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 3, 2019

'IS NOT' does not work with Issue Key and Issue Link field types (see here).

Suggest an answer

Log in or Sign up to answer