Open and close a Service request at the same time
I have a question that I would like to post out to the group. The current ask is if there is an ability to open a Service request and close a service request at the same time. Rather than pressing save then going to all work items and then going to that new ticket and closing it out.
Best Answers
-
Adam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭The fastest way to create and close at the same time, would be to attach an SCO or SMA runbook as a single activity to the request. Said runbook would obtain the parent SR in this case and mark it as Completed.5
-
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭Agree that Orchestrator is a great option here, and a single runbook activity (RBA) that Completes the parent would work great and be reusable; however, this does assume that all requests of this type are auto completed.
If it was more case-by-case, or you didn't want to go the RBA / Orchestrator Connector route, you could also ask a question in the RO "Should this be automatically Completed?", and map the Yes/No list or boolean result to a Service Request property. A PowerShell script could then run every 5 or so minutes that completes any In Progress requests with "Yes" (or equivalent) in that property (Orchestrator, Task Scheduler, SMA, etc).6
Answers
If it was more case-by-case, or you didn't want to go the RBA / Orchestrator Connector route, you could also ask a question in the RO "Should this be automatically Completed?", and map the Yes/No list or boolean result to a Service Request property. A PowerShell script could then run every 5 or so minutes that completes any In Progress requests with "Yes" (or equivalent) in that property (Orchestrator, Task Scheduler, SMA, etc).
Credits goes to @Morten_Meisler for the excellent blog post on how you can create SR templates with different statuses. Only note is that I had to use enum guid instead of $MPElement[Name='ServiceRequest!ServiceRequestStatusEnum.Closed']$
Hi Martin, any news regarding this wonderful customization?
Regards, Raffael
If you are asking about the custom (+) in the corner, then I don't know
I would like to get some comments in place and perhaps clean the code a bit but otherwise I will share it after my vacation.