Change Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2024 08:05 AM
When a "Change Request" is in the "Review" state and is marked as "Rejected," automatically sets the state of all related tasks to "Canceled."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2024 09:27 AM
HI @indrajeetma
Create a Business Rule to run After the Update
with the condition current.state == 'Rejected' && previous.state == 'Review';
with script as
var tasks = new GlideRecord('task');
tasks.addQuery('change_request', current.sys_id);
tasks.query();
while (tasks.next()) {
tasks.state = 'Canceled';
tasks.update();
}
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-28-2024 10:29 AM
Is there any state has value rejected?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2024 04:53 AM - edited ‎11-19-2024 03:06 AM
To automate this process, create a workflow rule that triggers when a "Change Request" in the "Review" state is marked "Rejected," updating the status of all related tasks to "Canceled" automatically. This approach streamlines task management by eliminating the need for manual updates, ensuring that no tasks remain active for rejected requests! I was struggling with all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2024 09:44 AM - edited ‎10-27-2024 01:25 PM
You make a correct statement. There is an OOB BR for that named "Cancel change_tasks" defined on the change_request table.