How to map record producer severity fieldvalues with incident priority values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 11:27 AM
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
Could you advise how can we achieve this from server side script not from client script ?
Thanks,
Srinivasu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 11:40 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 11:43 AM
@Srinivasu2 You can check the value of severity variable inside the record producer script field and set the value of priority accordingly.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 12:08 PM
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.