Partager via


Update Service Manager Related Manual Activity Fields with Information from the Parent Change Request – Scenario 2

 

“Copy Change Request Form fields into all Manual Activities in a Change Template. “

High level steps

The high level steps as per my first post here the differences are in the RunBook design as such this post will only demonstrate the RunBook Design Differences.

 

  • Design Orchestrator RunBook
  • Deploy the Service Manager Runbook Automation Activity Template
  • Add the Runbook Automation Activity into the Service Manager Change Request Template

Design Orchestrator Runbook

This Runbook is triggered by the Service Manager Change Management Workflow, it is a RunBook Automation Activity associated with a Service Manager Change Request Template.

Service Manager 2012 IP Pack Activities used in this Orchestrator Runbook
https://technet.microsoft.com/en-us/library/hh832016.aspx

 

  • Get Object - The Get Object activity is used to search for a record based on a set of filtered criteria. The Get Object activity supports incidents, changes, and activities.
  • Get-Relationship Activity - The Get-Relationship Activity is used to generate a list of objects from two different classes that are related by the criteria you specify i.e. Change Request and Manual Activity.
  • Update Activity - The Update Activity Activity is used to make changes to activity records for the selected activity class.

In the Runbook below we are going to use the Get-Relationship activities to build a relationship between the Runbook Automation Activity Class and the Change Request Class – this relationship contains the Parent Change Request ID which we require in order to locate and update all related Manual Activities.

Capture

 

Initialise Data – Service Manager RunBook Automation Activity ID is copied to the Databus

initdat

 

Get-object - “Get RBA ID” – RunBook Automation Activity ID instance values are copied to the Databus

Get-RBAID      Get-RBAID 1

 

Get-Relationship - “Get Parent CR related to the RBA ID” – Builds the relationship between the RunBook Automation Activity and related Change Request and copies to the Databus

Get-parentCRRelated to RBA

Get-object - “Get Parent CR ID” – Gets the Parent Change Request ID and copies to the Databus

get-parentCID      get-parentCRID 1

 

Get-Relationship – “From Parent CR Get Child MAs” - Gets all related Manual Activities from the Parent Change Request.

from Parent get child MA

 

Update Activity – Update All MA Description with CR ID, Title and Notes” – Updates all related Manual Activities with selected information form the Parent Change Request

Update All MA from Parent      Update All MA from Parent Filter

Expand the Description Field
MA_DescriotionFilter

 

Check in the Runbook “Update MA Description from CR”
CheckIn