locked
Trigger event notification when reviewer is addded to review activity. RRS feed

  • Question

  • I have a requirement to create subscription that fires when a reviewer is added to a review activity. (Change Management) And then send an email to the reviewers that were added.

    I cant seem to get a trigger that will do this....  I dont seem to have any reference to the reviewer.

    I have tried taking a difference angle, and base it on change request status, but I still can't see to grab the reviewers.

    The best attempt I think I have done is to set up a sucscription that is "suppose" to trigger when a CR goes from != inprogress, and into =inprogress. AND templateID = minorchangerequest

    That seems to trigger sometimes, but not all.

    Are the fields case sensative, that might be an issue.

    Any ideas?


    Joshua Fuente


    Friday, April 19, 2013 5:53 PM

Answers

  • And the references are:

    <Reference Alias="Subscriptions">
      <ID>Microsoft.SystemCenter.Subscriptions</ID>
      <Version>7.0.0.0</Version>
      <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Activity">
      <ID>System.WorkItem.Activity.Library</ID>
      <Version>7.0.0.0</Version>
      <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>

    Alternatively, we (Cireson) do provide a app for SCSM that can do this for you.


    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Auto-Close app click here



    • Edited by Rob.Ford Tuesday, April 23, 2013 9:47 PM
    • Marked as answer by NachoScript Wednesday, May 1, 2013 3:26 PM
    Tuesday, April 23, 2013 9:46 PM

All replies

  • I have not tested this but you could try to setup a subscription for RA with any criteria that emails the reviewer as a related recipient. Export the MP and change the DataSource for the rule to a relationship subscription like this:

    <DataSources>
      <DataSource ID="Some.Workflow.DS" TypeID="Subscriptions!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule">
        <Subscription>
          <RelationshipSubscription RelType="$MPElement[Name='Activity!System.ReviewerIsUser']$" SourceType="$MPElement[Name='Activity!System.Reviewer']$" TargetType="$MPElement[Name='System!System.Domain.User']$">
            <AddRelationship />
          </RelationshipSubscription>
          <PollingIntervalInSeconds>30</PollingIntervalInSeconds>
          <BatchSize>100</BatchSize>
        </Subscription>
      </DataSource>
    </DataSources>


    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Auto-Close app click here

    Tuesday, April 23, 2013 9:45 PM
  • And the references are:

    <Reference Alias="Subscriptions">
      <ID>Microsoft.SystemCenter.Subscriptions</ID>
      <Version>7.0.0.0</Version>
      <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Activity">
      <ID>System.WorkItem.Activity.Library</ID>
      <Version>7.0.0.0</Version>
      <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>

    Alternatively, we (Cireson) do provide a app for SCSM that can do this for you.


    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Auto-Close app click here



    • Edited by Rob.Ford Tuesday, April 23, 2013 9:47 PM
    • Marked as answer by NachoScript Wednesday, May 1, 2013 3:26 PM
    Tuesday, April 23, 2013 9:46 PM
  • Thanks, I may try this, or I may just do it in PowerShell, as I am already adding reviews the activity using powershell, it would be very simple to add a simple .net mail client code, and send the email, right then.

    Thanks for the help, what is the Cireson app you mentioned?


    Joshua Fuente

    Wednesday, May 1, 2013 1:56 PM
  • Thanks for the help, what is the Cireson app you mentioned?


    Joshua Fuente


    I recently blogged about it here:
    http://www.cireson.com/scsm/cireson-notify-analyst-app/

    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click here

    Thursday, May 2, 2013 2:40 AM