I need to filter out items with a status contains the string "Imp".
Hi Dave - Welcome to the Atlassian Community!
First question is how many statuses do you have total that would have that string? And can you not just list them with AND Status not in (IMP1, IMP2, IMP3)
Hi @Dave Wiggins ,
Welcome to Atlassian community.
Good question, this is a common use case when you want to exclude specific words or partial matches in Jira JQL searches.
If you’re trying to filter out any issues whose Status contains the word “Imp” (for example: Implemented, In Progress (IMP), Improvement, etc.), you can use the !~
operator in your JQL.
JQL Query: status !~ "Imp"
This means: Return all issues where the Status field does not contain the text ‘Imp’ (case-insensitive).
Hope that helps you clean up your results list!
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CONTAINS ~ operator for JQL is not supported with the Status field. Where were you able to make the query you suggested work in Jira?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy you’re right JQL doesn’t support partial-match (~
) on status field
. Its a workarounds by copying the status name to a custom text field. That way, I can then run JQL with the ~
operator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dave Wiggins ,
Welcome to Atlassian community.
It isn't possible to query the status containing a string, instead you can indicate the list of status.
The only workaround is to copy the status name to a custom text field and maintain it synched continously. This could be done with automation.
Having a custom text field, you can create a jql that search for a partial string.
I hope it helps.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.