Skip to content

February 17, 2016

SCSM: Include Affected/Assigned To User of Parent Work Item in Notifications

If you have ever wanted to include data properties from parent work items in your Service Manager activity notifications, you may have come across this blog:

This information is great as long as you want to include properties from the Work Item class. However, if you want to include the Affected User or Assigned To User in these e-mails, this gets more complicated as this cannot be generated using the UI.

Below, I have included information required to insert this data into your activity notifications.

Assigned User:
$Context/Path[Relationship=’CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity’ SeedRole=’Target’ TypeConstraint=’CustomSystem_WorkItem_Library!System.WorkItem’]/Path[Relationship=’CustomSystem_WorkItem_Library!System.WorkItemAssignedToUser’ TypeConstraint=’CustomSystem_Library!System.User’]$?$DisplayName$?

Affected User:
$Context/Path[Relationship=’CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity’ SeedRole=’Target’ TypeConstraint=’CustomSystem_WorkItem_Library!System.WorkItem’]/Path[Relationship=’CustomSystem_WorkItem_Library!System.WorkItemAffectedUser’ TypeConstraint=’CustomSystem_Librry!System.User’]$?$DisplayName$?

Note: Be careful copy and pasting this, sometimes the SCSM Subscription wizard has issues with the way text is converted when copy/paste.
Note2: Make sure the MP alias in your notification MP matches mine, if not update the aliases in the above code to match your aliases.

Share your thoughts, post a comment.


Note: HTML is allowed. Your email address will never be published.

Subscribe to comments