- 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-11-2017 02:21 AM
Hi Clive,
Just curious, have you set up a 'Priority Lookup' definition on task table same as Incident table?
If no, can you try putting logs in your BR to check if the BR is being encountered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 03:21 AM
Hi Anurag,
I can confirm that I haven't added any lookup on the task table.
Your have to help me out at adding logs on the BR?
Many thanks
Clive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 03:32 AM
Try this in the script part of BR:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
gs.log("Inside Business Rule");
gs.log("Parent Priority is:"+current.parent.priority);
current.priority = current.parent.priority;
gs.log("Current Priority is:"+current.priority);
})(current, previous);
Search under system logs (syslog.list) and search for the logged messages. If you don't get any logs, BR is not running, you might need to recheck the conditions.
If you undefined in 2nd or 3rd log, check the values accordingly. Let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 08:51 AM
Done that and couldn't see anything in the system logs 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 11:07 PM