Custom Report
Has anyone developed a report (perhaps from Data Warehouse) that will capture all of the activities of a particular Service Request?
Our Management wants to analyse where the bottlenecks are in long running Service Requests. Rather than doing a deep dive, I thought I might asked if someone had already developed something like that.
Thanks!
Answers
We were thinking about such report, too. Taking activity duration =( activity actual end date) - (activity actual start date) combining with Activity Implementer we could identify activities and analysts slowing processes and SR fulfilment.
We are pulling data from ServiceManagement database to QlikView server for easy reporting. This would be nice place for working with this data in our company, too.
However, we didn't work on this yet.
I think the activities are in ActivityDimvw and the Service Requests are in ServiceRequestDimvw but I'm having issues linking those tables.
I started with:
Select
Coalesce(ROInfo.DisplayName, 'Other Sources') as [RequestOffering],
SR.Id,
SR.Title,
SR.CreatedDate,
SR.CompletedDate,
datediff(day, SR.CreatedDate, SR.CompletedDate) as [DaysOpen] from ServiceRequestDimvw SR
left join WorkItemDimvw WI on SR.EntityDimKey = WI.EntityDimKey
left join WorkItemRelatesToRequestOfferingFactvw WIRO on WI.WorkItemDimKey = WIRO.WorkItemDimKey
left join RequestOfferingDimvw ROInfo on WIRO.WorkItemRelatesToRequestOffering_RequestOfferingDimKey = ROInfo.RequestOfferingDimKey
where SR.CompletedDate >= '3/1/2020' and SR.CompletedDate < '04/1/2020' and SR.CompletedDate is not NULL
I feel like I have something like this for the DW. Need to do some looking but I can tell you the joins that you're looking for are -
If my memory serves correct, I also recall doing a number of sub queries to get nested Activities though.
You probably want to use something like a recursive CTE to get the nested activities. Here is an old example I found on getting all child activities of a SR:
You probably want to use something like a recursive CTE to get the nested activities
Oh yea or that!
Thank you!! I really appreciate the responses!
I tried this, the few SR's that I ran it against didn't return all of the activities in the Service Request and It seemed it ignore the Parallel Activity (and the activities inside) and didn't sequence the items like they were in the SR. However, it's a great start!
Once requirement would be to select on the request name so that I get all of the Service Requests, in a given time frame, with the actual start and end dates so I can calculate an average for the time period (an average for all the first activity, an average for the second activity, etc.) If I can get the "assigned to" user, that would be great too!