locked
Activity Notification - Notification Template code translation is scrambled RRS feed

  • Question

  • Hi,

    We've been testing with the Change Management part of SCSM and can get it to do pretty much everything we need it to apart from two problems we are having.

    Problem 1. I've created a notification template based on the Activity Review class so that a 'reviewer' receives an email with all the relevant info they need to approve or decline a CR.  In the notification template I selected to display content from releated classes such as "assigned to" user and "reviewer" and related work item (change request).  However when the workflow is triggered that sends this notification the email comes back blank apart from the review acitivy ID and any text I manually wrote into the template. 

    For clarity I chose this content to display in the notification template and even though there is data displayed for these fields when I open the CR form in the management console, the email doesn't display the dynamic info...  For ref I used the picker to select the items - I didn't paste the code in or manually type it in.

    To $Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.ReviewActivityHasReviewer' TypeConstraint='CustomSystem_WorkItem_Activity_Library!System.Reviewer']$?$DisplayName$?

    Suggested Start Date: $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToWorkItem' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/ScheduledStartDate$

    -------------------------------------------------------------------------------------------------------------
    Implementation Plan

     

    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToWorkItem' TypeConstraint='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/ImplementationPlan$

    -------------------------------------------------------------------------------------------------------------

    Risk Assessment Plan

     

    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToWorkItem' TypeConstraint='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/RiskAssessmentPlan$

    -------------------------------------------------------------------------------------------------------------

    Test Plan:

     

    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToWorkItem' TypeConstraint='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/TestPlan$

    -------------------------------------------------------------------------------------------------------------


    Back out Plan

     

    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToWorkItem' TypeConstraint='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_ChangeRequest_Library!System.WorkItem.ChangeRequest']/BackoutPlan$

    -------------------------------------------------------------------------------------------------------------
    Configuration items to Change

     

    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemAboutConfigItem' TypeConstraint='CustomMicrosoft_Windows_Library!Microsoft.Windows.Computer']/Property[Type='CustomMicrosoft_Windows_Library!Microsoft.Windows.Computer']/NetbiosComputerName$

    -------------------------------------------------------------------------------------------------------------

     

    The email comes back like this:

    To

    Suggested Start Date:

     

    -------------------------------------------------------------------------------------------------------------
    Implementation Plan

     

    -------------------------------------------------------------------------------------------------------------

    Risk Assessment Plan

     

    -------------------------------------------------------------------------------------------------------------

    Test Plan:

     

    -------------------------------------------------------------------------------------------------------------


    Back out Plan

     

    -------------------------------------------------------------------------------------------------------------
    Configuration items to Change

     

    -------------------------------------------------------------------------------------------------------------

     

    Problem 2: I want to send notifications to staff assigned to manual actitives via a workflow.  Unfortunately I'm not able to select an appropriate user to send notifications to.  I expect to be able to select "Acitivity Implementer" but instead I get the choices of "Owner", "Reviewers", or "Assigned to user".  So effectively I don't seem to be able to send notifications via a workflow.  Is the only way to do this via Subscriptions?

     

    Thanks

    Tim

    Thursday, December 22, 2011 1:37 PM

Answers

  • 1. You can't access from RA to CR. Dy Design. Solution: create workflow and copy data from CR to RA. Search the forum, already discuss many times.

    2. Implementer = "Assigned to"


    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    • Marked as answer by The_Ronin_69 Thursday, January 5, 2012 4:07 PM
    Thursday, December 22, 2011 2:56 PM

All replies

  • 1. You can't access from RA to CR. Dy Design. Solution: create workflow and copy data from CR to RA. Search the forum, already discuss many times.

    2. Implementer = "Assigned to"


    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    • Marked as answer by The_Ronin_69 Thursday, January 5, 2012 4:07 PM
    Thursday, December 22, 2011 2:56 PM
  • Hi Anton,

    Thanks for your reply.  Is this something that is likely to be available in SCSM 2012 through the SCSM console rather than coding under the hood?  It seems logical that you would want to include information about a CR when notifying a reviewer.

    It's been great to quickly setup notification templates through the GUI using built-in functionality for the IR side of things - especially without having to spend excessively on training for the Helpdesk team who create and manage these templates.  I don't really want to have to invest in a developer to manage the Service Desk system - that seems to defeat the point of using SCSM really.

    Thanks,

    Tim

    Thursday, December 22, 2011 3:10 PM
  • I agree with you, but don't forget - SCSM2010 is the first version of the product. And yes, SCSM2012 is a huge step forward (but I can't now confirm about access to parent CR, that must be checked).
    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    Friday, December 23, 2011 2:33 PM