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
Jira Administrator
Configure Jira Software, Jira Core, or Jira Service Management, including global settings, permissions, and schemes.
Managing Jira Projects Cloud
Learn to create and configure company-managed projects in Jira Software and partner effectively with Jira Admins.
Learning Path
Become an effective Jira Software Project Admin
This learning path is designed for team leaders who configure Jira Software projects to match a team's processes.