Incident task priority to be inherited from the incident

clivebushell
Giga Contributor

Hi,

How do I ensure that when you open and create a new Incident Task from an Incident ticket, that it inherits the priority from the Incident ticket?

Many thanks

1 ACCEPTED SOLUTION

Couldn't you just dot-walk from the task to the incident... then obtain the priority from there?



Just thinking that it's a read-only value and won't change throughout related records, so makes sense to keep it in one location and display it in several, rather than copy it throughout different records (then factor in cascade updates if the incident priority changes)


View solution in original post

22 REPLIES 22

Chuck Tomasi
Tera Patron

When the incident task is created, copy the value. Keep in mind that the incident task priority may be calculated from impact and urgency like the incident is so you may need to copy thos as well. An INSERT/BEFORE business rule on the incident_task table should do quick nicely.



current.priority = current.incident.priority;


// Copy impact and urgency the same way if necessary



Reference:


Business Rules - ServiceNow Wiki


Business Rules Best Practices - ServiceNow Wiki  


Hi Chuck,



Thanks for taking the time to reply to me



I have created the Business Role off the Incident task as below



find_real_file.png



However it the priority is still coming up as none



Kind regards



Clive


Hi Clive,



What does it say under the "When to run" tab on that BR?


Hi Chuck,



Please see screenshot below



find_real_file.png



Many thanks



Clive