Auto-create Outage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2018 02:02 PM
I am looking for a way to automatically generate an Outage record when a Critical Incident is created. Additionally, I am looking to incorporate the "Begin Now" UI Action when the record is generated. Thoughts?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2018 08:11 PM
Hi,
For this you'd need to look in to creating a script include (glideajax) which initializes the cmdb_ci_outage table, fill in various values from the incident such as CI, Task Number, begin would be
gs.nowDateTime()
and then inserts it onSubmit of the incident....which of course you'd only want to happen I guess if the g_form.getValue('priority') == 1; or something to that effect.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2018 10:36 AM
Hi,
I just wanted to check in and see if my response helped solve your issue.
If so, please mark it as Helpful/Correct. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2018 06:43 PM
Hi,
I just wanted to check in on this and see if I've provided a good solution for you. If you don't mind, can you mark my response as "Correct"? This allows the answer to pop up to the top and makes it easily when people are filtering/searching for this type of question with correct answers.
Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 06:36 PM
Hi Allen - I have similar requirement for this. Need to auto create Outage from Incident when it's promoted to Major Incident having the fields for CI, begin, some custom fields. I tried creating a BR from Incident which runs when major incident is accepted. It auto creates the Outage but does not display the fields I wanted to generate.
Can you help me if I'm missing something on my script. Thanks a lot!
BR:
var outGr = new GlideRecord("cmdb_ci_outage");
outGr.initialize();
outGr.setValue('type', outGr.getValue('outage'));
outGr.setValue('cmdb_ci', outGr.getValue('cmdb_ci'));
outGr.setValue('begin', outGr.getValue('work_start'));
outGr.setValue('u_impacted_site', outGr.getValue('u_impacted_site'));
outGr.setValue('u_impact', outGr.getValue('u_impact'));
var outsys_id = outGr.insert();
current.task_number = outsys_id;
current.update();
gs.addInfoMessage("Outage " + outGr.getValue("number") + " created");
return;