change request record - would like to see change request details + workflow activities status
I would like to see a report (in a single pane and inside of the cireson web portal) where I can see the change request and the 2nd activity status. for example, have a list of records inside of the cireson portal that shows:
CR#,title,assigned to,change request status,activity #2 status,scheduled start time
Can someone help me so I can get the desired report/view of the change requests? THanks
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭@Michael_Watson - You should be able to create a SQL Table Widget on a dashboard page and use this query to get what your'e after:SELECT cr.Id_9A505725_E2F2_447F_271B_9B9F4F0D190C AS 'WorkItemID',cr.Title_9691DD10_7211_C835_E3E7_6B38AF8B8104 AS 'CR_Title',assu.DisplayName as 'Assigned User',statds.DisplayName AS 'CR_Status',ra.Id_9A505725_E2F2_447F_271B_9B9F4F0D190C AS 'Activity_ID',aStatDS.DisplayName AS 'Activity_Status'FROM MTV_System$WorkItem$ChangeRequest crJOIN Relationship assron assr.SourceEntityId = cr.BaseManagedEntityIdand assr.RelationshipTypeId = '15e577a3-6bf9-6713-4eac-ba5a5b7c4722' --Asigned User relationshipJOIN MT_System$Domain$User assuon assu.BaseManagedEntityId = assr.TargetEntityIdJOIN DisplayStringView statDSon statds.LTStringId = cr.Status_72C1BC70_443C_C96F_A624_A94F1C857138and statds.LanguageCode = 'enu'JOIN Relationship pcon pc.SourceEntityId = cr.BaseManagedEntityIdand pc.RelationshipTypeId = '2da498be-0485-b2b2-d520-6ebd1698e61b' -- Work Item contains Activity relationshipJOIN MTV_System$WorkItem$Activity$ReviewActivity raon pc.TargetEntityId = ra.BaseManagedEntityIdJOIN DisplayStringView aStatDSon astatds.LTStringId = ra.Status_8895EC8D_2CBF_0D9D_E8EC_524DEFA00014and aStatDS.LanguageCode = 'enu'WHERE statds.DisplayName = 'In Progress'AND ra.SequenceId_644EB7B4_745F_8E69_5695_833D7AFD28A0 = 1 --second activity in the list5
Answers
Hi @Justin_Workman
This is helpful. How could I use this same code, but be able to see the activities within sequential activities?