There are two Record Producers that are still using the "calculatePriority" function:
- Create a New Incident
- Something Broken

This function is no longer available. The calculation of the priority is now done via Data Lookup. Therefore, the priority is not calculated, a warning is raised in the log, and the rest of the script is not executed. The warning is:
org.mozilla.javascript.EcmaError: "calculatePriority" is not defined.
Caused by error in <refname> at line 8

5: s += 'You can track status from the <a href="home.do" class="breadcrumb" >Homepage</a>
6: fi.addMessage(s);
==> 8: current.priority = calculatePriority(current.impact, current.urgency);
9: current.contact_type = 'self-service';

Steps to Reproduce

  1. Try to register an Incident using the Record Producer Create a New Incident
  2. Check the System Logs for the warning mentioned in the description above. 
  3. Check the Contact type in your Incident.


Since the function calculatePriority is being removed, any call to this function should be removed.

Part 1:

  1. Locate the record producer in Service Catalog > Record Producers and open the record producer.
  2. Scroll down to the Script field.
  3. Delete the line that reads "current.priority = calculatePriority(current.impact, current.urgency);"

Part 2 (for base system instances):

  1. Navigate to System Policy > Data Lookup Definitions.
  2. Open the Priority Lookup record.
  3. Set Run on insert and Run on update to true.
  4. Save the record.

Related Problem: PRB577556

Seen In

Aspen Patch 4
Berlin Hot Fix 4
Berlin Hot Fix 5
Berlin Patch 5 Hot Fix 2
Eureka Patch 2

Fixed In

Berlin Patch 4
Berlin Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2015-05-13 15:38:49