How to map record producer severity fieldvalues with incident priority values

Srinivasu2
Tera Contributor

Hi Community,

 

I created a record producer there it is select box variable called severity in ESC Portal

I have created a same new custom choice field called severity in incident form 

now i just want to map from severity to priority whenever user submitted form from ESC portal

 

the choice values are like as below.

SEV1(Outage) will be mapped to Priority-1

SEV2(Critical) will be mapped to Priority-2

SEV3(Urgent) will be mapped to Priority-3

 

 

Srinivasu2_1-1712081459223.png

 

Could you advise how can we achieve this from server side script not from client script ?

 

Thanks,

Srinivasu

 

 

 

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

The priority on incident form is set based on Impact and Urgency.

I would suggest you write a record producer script to set the impact and urgency based on Severity selected.

For ex, to set priority to 1 you can do

if (producer.severity=='1')

{

current.impact = '1';

current.urgency = '1';

}

esle 

if (producer.severity=='2')

{

current.impact = '1';

current.urgency = '2';

}


Please mark this response as correct or helpful if it assisted you with your question.

Sandeep Rajput
Tera Patron
Tera Patron

@Srinivasu2 You can check the value of severity variable inside the record producer script field and set the value of priority accordingly.

 

Screenshot 2024-04-03 at 12.13.06 AM.png

Hope this helps.

Appanna M
Tera Guru

Hello @Srinivasu2 ,

You can map the Priority of the incident by defining in the record producer script. 

Example: var sev = producer.severity;

if(sev == "SEV1");

current.severity = 1;// backend value of the severity of inc

something like this you can update. 

 

Please Mark My Answer as Helpful and Accept as Solution, if you find this article helpful or resolves your issue.