How to search using statusCategory() & statusCategoryChangedDate() function with JQL

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Purpose

This article will help us understand how to search for issues based on StatusCategory and statusCategoryChangedDate functions using JQL 

Solution

A function in JQL appears as a word followed by parentheses, which may contain one or more explicit values or Jira fields. In a clause, a function is preceded by an operator, which in turn is preceded by a field. A function performs a calculation on either specific Jira data or the function's content in parentheses, such that only true results are retrieved by the function, and then again by the clause in which the function is used.

statusCategory()

Search for issues based on status category. When you navigate to https://JIRASITENAME.atlassian.net/secure/admin/ViewStatuses.jspa you can see a column called Category and (ToDo, Inprogress, Done) are the three status categories. This function uses to fetch data based on this category change.

Syntax
statusCategory()
Supported fieldsStatusCategory
Supported operatorsIN , NOT IN, = , !=
Unsupported operators~ , !~ , > , >= , < , <=
IS , IS NOT, WAS , WAS IN , WAS NOT , WAS NOT IN , CHANGED
Examples
  • Find all issues for which the status category is set to ToDo & In Progress:
    StatusCategory in ("To Do","In Progress")


statusCategoryChangeDate()

Similar to StatusCategory, you can issue based on the timeline using the statusCategoryChangedDate() function.

Syntax
statusCategoryChangedDate()
Supported fieldsStatusCategory
Supported operators= , != , > , >= , < , <= , CHANGED
Unsupported operators~ , !~ , 
IS , IS NOT, WAS , WAS IN , WAS NOT , WAS NOT IN 
Examples
  • Find all issues for which the statusCategory has changed prior to 7 days.

    statusCategoryChangedDate <= -7d

Last modified on Nov 14, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.