- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 07:49 AM
Hi All,
I've created a record producer for some incidents. All the incidents created via this record producer will be Sev 2 so we are not asking them a severity question.
I have been trying to set the value of the questions in the record producer script but not having any luck.
Back end incident form has the following fields:
The answer to 'number of users affected' & 'number of transactions affected' set the value of the 'impact' field.
Then the answers to 'impact' & 'urgency' then set the value for 'severity'
Below is an example of how the choices are setup.
In the record producer script I have the following:
I have also tried with '2' and "2" and still it does not set the value in the back end incident form.
Any help as to where I am going wrong is greatly appreciated.
Thanks
Sam
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2017 05:15 AM
Thanks Michael, I was not aware.
Sam the only way now is locate the error using gs.log. Maybe you can also copy the last three rows of your script in a new record producer, it will work.
Regards,
Valentina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 08:38 AM
OK thanks for confirming. The out of the box urgency field is an integer so the following script should work:
current.u_number_of_operators_affected = "2";
current.u_number_of_policies_affected = "2";
current.urgency = 2;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 09:16 AM
There must be some other business rule or script affecting this. I just took an out of the box incident record producer and added the following script to it and it worked:
current.impact = 1;
current.urgency = 1;
See if you have any before insert business rules running that modify these specific fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 09:34 AM
Hi Michael,
I am not aware of any before insert business rules running on these fields. I've had a look and can't see any that would clear the value or change the value in these fields.
Is there any other way I can try and set the value of these fields?
Thanks for your help
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2017 09:50 AM
Hi Sam,
could you add a gs.log after the last script row, just to be sure the script processes all the rows and not stop before..
Regards,
Valentina