how to copy data for related items for all business services?
I am trying to create a view to see the related work items for CIs (Business services in this case related to Incidents), I have tried couple of combination class and that didn't work, also tried the service map advanced combination class,
then I tried to get this off related items from the console, its shows the data but I can't copy. any idea on how to copy?
Best Answer
-
David_Morris1 Member Advanced IT Monkey ✭✭✭I would suggest a script targeting the Data warehouse would be the easiest way to get this info on mass,
Sample below showing all services and any related workitems, you may also want to use the "Workitemaboutconfigitemfactvw" as a join to see any services that have been linked as "Affected" rather than "Related"SELECT BService.displayname as "Service",WI.Id as "Workitem"FROM [DWDataMart].[dbo].[ServiceDimvw] BServiceleft join [DWDataMart].[dbo].[ConfigItemDimvw] CI on BService.EntityDimKey = CI.EntityDimKeyleft join [DWDataMart].[dbo].[WorkItemRelatesToConfigItemFactvw] CI2WI on CI.ConfigItemDimKey = CI2WI.WorkItemRelatesToConfigItem_ConfigItemDimKeyLeft Join [DWDataMart].[dbo].[WorkItemDimvw] WI on CI2WI.WorkItemDimKey = WI.WorkItemDimKeywhere WI.Id is not null5
Answers
Sample below showing all services and any related workitems, you may also want to use the "Workitemaboutconfigitemfactvw" as a join to see any services that have been linked as "Affected" rather than "Related"