Time in Status Custom Field


The Time in Status Custom Field lets you track the amount of time spent in selected status(es). It can be configured to work against a specific working calendar.

The custom field simply displays the total time passed during the selected status(es) as below.

When clicked it displays all details, below is a snapshot to demonstrate this.

Creating the Time in Status Custom Field

To define the Time in Status Custom Field:

  • Navigate to Jira Admin > Add-ons > Enhancer Plugin Menu > Custom Field Configuration and go to the Duration fields tab.
  • Click on the Add New Duration Custom Field button and then select the Time in Status custom field

  • Fill in the dialog box:
    1. Create a Name for your custom field.
    2. Select the status(es) that you want to calculate the amount of time spent in.
    3. A Calendar can also be selected. Working calendars can be defined in Jira Admin > Add-ons > Enhancer Plugin Menu > Working Calendars menu item.
    4. The Occurrence can be set to display only the "First" or "Last" occurrence, or an aggregated result with a "Cumulative" option.

    5. Configure the Time formatter display options (both for issue main view and navigator view).
  • And click on the Add Custom Field or Update button. That's it.

Don't forget to link the custom field with appropriate screens in order to see them.

Searching with the Time in Status Custom Field

The Time in Status Custom Field comes with a powerful searcher. You can use this custom field in your JQL statements in order to filter issues by status, then assigned users.

timeSpentBy(), timeSpentInStatus() and timeSpentInStatusBy() JQL functions can be used as right-hand functions with the custom field.

Below are some examples:


  • Searching against total duration including every user within the selected status(es).

    "Time in Review" >= 4d


  • Searching against a single user. 

    "Time in Open" <= timeSpentBy("5d", "agrant")

  • Searching against multiple users. Below function searches time spent by users (agrant, jevans and hjennings) in 'Waiting for support status' more than 5 calendar days.

    "Time in Waiting for support" >= timeSpentBy("5d", "agrant", "jevans", "hjennings")
  • Searching by the IDs of status(es). When the custom field is defined with multiple statuses, but you want to filter by some of them with the status IDs.

    "Time in Open" > timeSpentInStatus("2d", "1") 

    (Where 1 is ID of status Open).

  • Searching by the names of the status(es). When the custom field is defined with multiple statuses, but you want to filter by some of them with the status names.

    "Time in In progress" >= timeSpentInStatus("6h", "In Progress") 
    "Time in In progress" >= timeSpentInStatus("6h", "Open", "In Progress", "In Review")
  • Searching by status ID and the users.

    "Time in In progress" > timeSpentInStatusBy("8h", "3", "agrant") 


    (Where 3 is ID of status Open and agrant is the username).

  • Searching by status name and the users.

    "Backlog time" > timeSpentInStatusBy("10h", "Open", "hjennings")