approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 07:49 AM
Hello Team,
I need to trigger the approval to Approval group , owned by and Managed By for affected CIs and Affected Business Services if Outage is present. If it does not present then Needs to Trigger Notification Approval group, owned by and managed by on change Table while moving towards to request approval button.
Initially I created workflow and write script on that for approval. it was triggering approval. but now only condition added if outage is present.
I added Approval coordinator activity.
Also added script below
Now advise me we have to check If outage is present then needs to above approval. If it is not present, then send notification .
PLease help me on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 08:44 AM
Hi!
Sorry, I wanted to answer you this question, but there are a few things that are still unclear to me.
Do you want ALL managers and owners to approve PER one ci/service? OR, do you want only ONE of the two to approve PER one ci/service? Because if you need one of the two per ci, then you will need to add X number of child action for X number of ci/services that are currently in outage. So, you will encounter the issue that you can't add a child action through scrip dynamically. So, you likely will have to find another way of doing so. Probably a script on its own? But let's see this once you clarify.
Secondly, how are your ci/services interacting with your change request? Because you have multiple related lists to contain cis and services.
Do you want to check for those that are in affected cis, impacted ci/services, or outages? I ask this question because I do see the case scenario where you might want to have the approval from these people if they are found as being in an outage and the requestor would not be aware of this. That would require you to check through the [task_outage] table to check on those listed in your related list to see their latest outage and check whether or not they are currently in outage.
OR, do you want to check for those specifically in your outage related list, regardless of the date? Because then those are easy to find, they are just there in your related list.
OR, do you want to do the same check on them and send approval for only those that are still in outage?
OR, how do you want this to happen precisely?
So, yeah, I really do need more information in regards to the scenario you want to create.
Nonetheless, have a quick look at this ServiceNow | Product documentation (Task Outage) and see if this can help you out. It basically indicates you where you can find those outages.
Also, I see that you are checking from the [task_ci] table, are you doing this for a particular reason?
Anyways, please send over as much information as you can for the context of your approval.
Thanks,
Darius