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!
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
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Become an effective Jira admin
Manage global settings and shared configurations called schemes to achieve goals more quickly.
Streamline Jira administration with effective governance
Improve how you administer and maintain Jira and minimize clutter for users and administrators.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.