Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This Business Rule ensures that whenever the priority of a Change Request is updated, all related Change Tasks automatically inherit the same priority.

This helps maintain data consistency and ensures that task prioritization aligns with the parent change.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function executeRule(current, previous) {
//when the priority field changes
if (current.priority.changes()) {
var task = new GlideRecord('change_task');
task.addQuery('change_request', current.sys_id);//Find all tasks related to this Change Request
task.query();
while (task.next()) {
task.priority = current.priority; //Update the task priority
task.update();
}
}
})(current, previous);
Loading