- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2020 09:54 PM
Hello Guys,
I have created the record producer to let the end users create an incident in portal but our client want the end users to select impact and urjency of the issue and the choices for the impact and urjency are
impact choices
- I’m the only one with this problem (=> result impact 4-low in incident)
- We are few with this problem (=> result impact 3-medium in incident)
- 3.We are a lot with this problem (=> result impact 2-high in incident )
- All are impact with this problem (=> result impact 1-critical in incident)
how to set the impact values in the incident based on these choices selected by the end users.
Thanks and Regards,
Prerana
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2020 09:59 PM
Hi Prerena,
You have to write script in record producer scripts and check the value and according to it set the values.
The sample of the code would be:
if(producer.variables.impact = 'I’m the only one with this problem ') //backeend value of the choices of impact varialbe
current.impact = '4';
else if(producer.variables.impact = 'second optoin')
current.impact = '4';
if(producer.variables.impact = 'third optoin ')
current.impact = '2';
Please mark helpful and correct.
Thanks,
CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2020 10:33 PM
Hi,
i want to add few lines to megha's answer.
write below code :
if(producer.impact == "I’m the only one with this problem" )
current.impact= '4';
else if(producer.impact == "We are few with this problem" )
current.impact= '3';
else if(producer.impact == "We are a lot with this problem" )
current.impact= '2';
else if(producer.impact == "All are impact with this problem" )
current.impact= '1';
Kindly Mark helpful and correct if it works.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2020 10:35 PM