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
Improve user experience across Jira with global settings
Learn how to set up and configure a Jira site, manage Jira permissions, and configure Jira apps and integrations.
Learning Path
Streamline projects across Jira with shared configurations
Build Jira work items with reusable configurations called schemes, and reduce administrative work with automation.
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.