Alert Management Rules and Sub Flows

ayush_saxena
Tera Expert

Hi,

Is it possible to map JSON Parameter values on Alert's Additional Info to Incident Drop Down field. We have a requirement, environment of the server impacted comes as part of event's additional information, we want to map it to Incident's Environment (Custom) field using Subflow if possible. 

 

Any Ideas/Suggestions ?

 

Regards,

Ayush Saxena

1 ACCEPTED SOLUTION

So the best way that I have done this is to create a custom alert action and reverence that action from within a subflow to provide that data. I had to do this for a few things (in fact if you look there is an out of the box one for getting alert details in the out of the box create incident subflow which you could clone and add it to that as it just returns multiple variables that can be referenced). 

In order to do this though you have to be using the new subflow for incident creation and not referencing the script include way of doing it. I would just add code to an action or that out of the box one (after cloning it) to run regex on the additional_info (or you could get do the JSON.parse() and then access the data that way). Hope this helps.

View solution in original post

9 REPLIES 9

So the best way that I have done this is to create a custom alert action and reverence that action from within a subflow to provide that data. I had to do this for a few things (in fact if you look there is an out of the box one for getting alert details in the out of the box create incident subflow which you could clone and add it to that as it just returns multiple variables that can be referenced). 

In order to do this though you have to be using the new subflow for incident creation and not referencing the script include way of doing it. I would just add code to an action or that out of the box one (after cloning it) to run regex on the additional_info (or you could get do the JSON.parse() and then access the data that way). Hope this helps.

Thanks Robertgeen !! this is really helpful.. Can you please explain more on below

1. Did you use scripted Inputs ? I looked up was not able to find one OOB example. Can you direct me to same.

2. Will parsing JSON in that script give us the access to Key value parameters ? Do you have an example or something I can refer too.

Thanks Robert for this great advise !! 

I tried creating a custom script action and called it in the subflow. I am able to pull in the value from the additional_info but not able to populate the same in next step. 

So the idea is to pull value of inc_group coming from source tool and populate it to Incident assignment group. 

 

Any idea,what I am missing here. this used to work with alert action rules.

 

 

Hi Robert.  I am having a similar issue.  See:  Accessing Subflow Input Variables From Activity Script

Do you have any advice please?

ayush_saxena
Tera Expert

Thanks Robert !! This worked for me