Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

'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
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,998 views 11 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you