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

Jira StatusCategory does not work in History JQL statements

Scott Superko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 25, 2023

This appears to be a bug reported on Jira Server, but it also applies to Jira Cloud.  I can write a JQL query on Status WAS "Under Consideration", but I am unable to write a JQL query on StatusCategory WAS "To Do".

 

I should be able to do the later because StatusCategory is part of history tracking.  Flagging this as a bug!

2 comments

Comment

Log in or Sign up to comment
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2023

This is expected, if you look at the documentation for the WAS operator it states that it only support the fields Assignee, Fix Version, Priority, Reporter, Resolution, and Status. Status category is not a field on the issue, that is linked to the status.

Stanley Duback
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2023

Hey Scott

To add on to what Mikael posted,

When using statusCategory you are looking for the states of a status and not the status themselves.

You can use statusCategory to find "To Do/Grey Colored Statuses", "In Progress"/Blue Colored Statuses or "Done"/Green Colored statuses.

The following operators are not supported: ~ , !~ , > , >= , < , <=
IS , IS NOT, WAS , WAS IN , WAS NOT , WAS NOT IN , CHANGED


Here is the documentation for statusCategory in JQL

How to search using statusCategory() & statusCategoryChangeDate() function with JQL | Jira | Atlassian Documentation

Like Mikael Sandberg likes this
TAGS
AUG Leaders

Atlassian Community Events