- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi community,
I have request to generate a report to analysis the duration of each stage in RITM level, together with the approvers in each stages. I could find the metric_instance to calculate the duration of each stage, however, i could not find a table to calculate the approvers under specific stage, the sysapproval_approver table will only log the current stage.
Could you please help me? thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi community,
here is the workaround.
in the [sysapproval_approver] table there is a wf_activity reference field liked to the workflow and stages. this field is not active by default but it is populated with the right value, even though I cannot understand why it is configured that way.
in the [metric_instance] table, there is definition field equals "Stage Duration Calculation" & value field equals wf_stage (type string).
So I created a database view to join [metric_instance], with [wf_activity] and [wf_stage] table to present the duration of each stage and exported [sysapproval_approver] table to the requester. She can use 3rd party analysis tool to analyze these 2 tables with the workflow stage as the key.
root cause why I don't join [sysapproval_approver] and [metric_instance]: sometimes there are multiple approvers involved in one stage, if I do so, it will be misleading because the audience will misunderstood that during one stage all approvers need to approve but in reality, only one of them will be enough. as a result the stage duration calcuation from the table will be wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @major li
There isn’t an easy or straightforward way to achieve this. I’m not sure—it might be possible to get some help from the PA side if that works, otherwise you may need to write a full custom logic for it
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi community,
here is the workaround.
in the [sysapproval_approver] table there is a wf_activity reference field liked to the workflow and stages. this field is not active by default but it is populated with the right value, even though I cannot understand why it is configured that way.
in the [metric_instance] table, there is definition field equals "Stage Duration Calculation" & value field equals wf_stage (type string).
So I created a database view to join [metric_instance], with [wf_activity] and [wf_stage] table to present the duration of each stage and exported [sysapproval_approver] table to the requester. She can use 3rd party analysis tool to analyze these 2 tables with the workflow stage as the key.
root cause why I don't join [sysapproval_approver] and [metric_instance]: sometimes there are multiple approvers involved in one stage, if I do so, it will be misleading because the audience will misunderstood that during one stage all approvers need to approve but in reality, only one of them will be enough. as a result the stage duration calcuation from the table will be wrong.
