Skip to content

Latest commit

 

History

History
 
 

SCSM-Get-SCSMWorkItemParent

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Get-SCSMWorkItemParent

Loading the function

# Load the function in your PS
. .\Get-SCSMWorkItemParent.ps1

alt text

Get the Work Item Parent of a Runbook Activity

# Load the function in your PS
# Get a Runbook Activity
$RunbookActivity = Get-SCSMObject -Class (Get-SCSMClass -Name Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity$) -filter 'ID -eq RB12813'

# Get the Runbook Activity's Work Item Parent
Get-SCSMWorkItemParent -WorkItemObject $RunbookActivity

alt text

Get the Work Item Parent of a Runbook Activity using a GUID

# Load the function in your PS
# Get a Runbook Activity GUID
$RunbookActivity.get_id()

# Get the Runbook Activity's Work Item Parent from the RBA guid
Get-SCSMWorkItemParent -WorkItemGuid $RunbookActivity.Get_id()

alt text