The CreatorCon Call for Content is officially open! Get started here.

create a report to view change ticket lifecycle per state

Zoul
Kilo Contributor

I would like to create a report on my dashboard to calculate the time spent by a change request in each state of the state. 

For example the state are New , Assess , Authorize, Scheduled and so on . I need to calculate the time for how long the change request was in the New state or in Assess State...etc. is there a way to create such a report? i know there is a way to create Metric but in my firm we do not have access to create Metrics, so i need to know if it's feasible by creating a report?

1 ACCEPTED SOLUTION

M Iftikhar
Tera Sage

Hi @Zoul,

While it is possible to create a report that shows when a Change Request moved from one state to another, calculating the actual duration spent in each state is not natively supported through standard reporting alone.

This functionality is best achieved using Metrics, as they are specifically designed to track how long a record remains in a particular field value (such as a state).

 

Recommended Approach: Using Metrics:

 

  • Navigate to Metrics > Definitions, click New.

  • Configure the following:

    • Name: Change State Duration

    • Table: Change Request [change_request]

    • Field: State

    • Type: Field value duration

MIftikhar_0-1761046875731.png

  • Once created, you can build a report based on the metric data to view time spent in each state.

MIftikhar_1-1761046917984.png

Using Reports (Limited Insight):

 

  • Ensure sys_history_line Table is in the glide.ui.permitted_tables system property

    • Navigate to System Properties > All Properties.

    • Search for the property glide.ui.permitted_tables.

    • Verify that the sys_history_line table is included in the list of permitted tables. If not, add it to the list.

    MIftikhar_4-1761047282754.png

     

  • Navigate to Platform Analytics Administration > Usage and Governance > Reports, click New

  • Configure the report:

    • Name: Change Request Lifecycle per State

    • Source Type: Table

    • Table: History [sys_history_line]

  • Set Filters:

    • Table → is → change_request

    • Field → is → state

  • In the Type tab, set Report Type: List

  • In the Configure tab, set Group By: None

  • Save and run the report.

MIftikhar_2-1761047164255.png

This report will give you a view of each state change with timestamps, which you could export and calculate durations manually if needed.

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

View solution in original post

2 REPLIES 2

M Iftikhar
Tera Sage

Hi @Zoul,

While it is possible to create a report that shows when a Change Request moved from one state to another, calculating the actual duration spent in each state is not natively supported through standard reporting alone.

This functionality is best achieved using Metrics, as they are specifically designed to track how long a record remains in a particular field value (such as a state).

 

Recommended Approach: Using Metrics:

 

  • Navigate to Metrics > Definitions, click New.

  • Configure the following:

    • Name: Change State Duration

    • Table: Change Request [change_request]

    • Field: State

    • Type: Field value duration

MIftikhar_0-1761046875731.png

  • Once created, you can build a report based on the metric data to view time spent in each state.

MIftikhar_1-1761046917984.png

Using Reports (Limited Insight):

 

  • Ensure sys_history_line Table is in the glide.ui.permitted_tables system property

    • Navigate to System Properties > All Properties.

    • Search for the property glide.ui.permitted_tables.

    • Verify that the sys_history_line table is included in the list of permitted tables. If not, add it to the list.

    MIftikhar_4-1761047282754.png

     

  • Navigate to Platform Analytics Administration > Usage and Governance > Reports, click New

  • Configure the report:

    • Name: Change Request Lifecycle per State

    • Source Type: Table

    • Table: History [sys_history_line]

  • Set Filters:

    • Table → is → change_request

    • Field → is → state

  • In the Type tab, set Report Type: List

  • In the Configure tab, set Group By: None

  • Save and run the report.

MIftikhar_2-1761047164255.png

This report will give you a view of each state change with timestamps, which you could export and calculate durations manually if needed.

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Zoul
Kilo Contributor

Thank you @M Iftikhar you're the best!!