RB to MA stuck in pending
We have a set of RB's behind our CR to allow the status to be changed from 'In Progress' to a specific status e.g. 'CAB Approval' - when the automation task is completed the manual activity just sits on pending.
Is it possible to go directly from a completed RB activity to a MA? If not, how can we proceed to get this to work?
Thanks
Tom
Best Answer
-
Tom_Hyde Customer Advanced IT Monkey ✭✭✭Managed to sort this without any RB or PS - Simply add the relevant status(es) as a Child Item underneath 'In Progress'
7
Answers
Are you looking for PowerShell code? Or scorch runbooks to do the trick?
Looking for scorch runbooks ideally.
In scenarios like these where the workflow engine is stuck or is just ignoring work items, yep, you'll need a runbook or custom workflow to push it along. Something like a scheduled runbook or c#/PowerShell wf with a subscription or short timed schedule.
I do have a few PowerShell examples, but my native scorch runbook abilities are rather lacking. I'll have to defer to someone else.
If you can provide me with the PS examples then i can always give them a go also?
The PowerShell for obtaining and changing a status would work something like this: