- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 05:59 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2017 02:19 AM
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)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 06:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 07:28 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 09:41 AM
Hi Clive,
What does it say under the "When to run" tab on that BR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 01:33 AM