Calculate Tasks Where State Reverted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 08:19 AM
How would you calculate how many stories went back into draft once progressed to a state of Approved by PO?
Example
1) story created with state = "Draft"
2) story state updated = "Awaiting Approval"
3) story state updated = "Approved by PO"
4) story state updated = "Draft"
Goal = report on how many stories went back into draft once progressed to a state of Approved by PO?
While this example is specific my question is aimed at understanding if it is possible to track any tasks that progressed from state1 -> state2 -> state1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 11:54 AM
DB view will help you to get the stories number and other filed on story table.
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
11-05-2024 07:37 AM - edited 11-05-2024 07:57 AM
I have mocked up an example below from my database view.
NUMBER DEFINITION VALUE DURATION
STRY####### Story State Duration DRAFT 5 min
STRY####### Story State Duration AWAITING APPROVAL 5 min
STRY####### Story State Duration APPROVED BY PO 5 min
STRY####### Story State Duration DRAFT
This example is for one single story.
I do not understand how Service Now will allow me to use this view to count "how many stories went back into draft once progressed to a state of Approved by PO?"
The database view will contain many different stories.
Not all stories will satisfy this criteria, I am struggling to figure out how to filter or slice this data to identify only those stories that satisfy the criteria?
In theory this criteria would provide the correct results I am struggling to find a way to implement this logic.
SELECT ALL stories from db_view WHERE
- for a single story... count of value = "draft" > 1
- for a single story... count of value = "APPROVED BY PO" >= 1
Would I need to create an additional database view on top of my other database view?