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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Is it possible to apply IN clause on custom fields Edited

Hi There,

I want apply IN clause on custom fields to get the data in one query instead of polling multiple times is it possible?

My current query:

for item in items:

        jql = ('status in ("Resolved") AND priority=P1 AND resolutiondate >= "-1d" and 'cf[1111]~{0}'.format('"' + item+ '*")

I am expecting:

jql =   ('status in ("Resolved") AND priority=P1 AND resolutiondate >= "-1d"                 and 'cf[1111] IN({})'.format('"' + item1+ '",'"+item2+'"','"+item3+'"')


Please help me

Thank you



1 answer

0 votes

Hey there @Laxminarsaiah Ragi ,

Of the IN clause as an operator directly in the JQL, It fully depends on the custom field type as covered in the documents "Advanced searching - fields reference: Custom Fields" for supported operators which the IN clause falls into: 

Different types of custom field support different operators.

Looking at your query your using the "~" operator for a approximately related value returned within the following string, indicating a text field is in use as a the "~" operator is generally unsupported for custom fields but Jira text-search syntax can be used with custom fields of type 'Text'. 

So to get a better understanding of the full query What is the custom field type and searcher for the field? It might be that the searcher doesn't allow the in use operator for this field.


Suggest an answer

Log in or Sign up to answer

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