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
Laxmi
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.
Regards,
Earl
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.