Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:31 PM
How to restrict assigning 2 sctasks to a same member when the tasks are generated from same ritm .
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:57 PM
Hi
You need a before Insert/update BR on the Catalog Task table which runs when
Assigned To | changes
(function executeRule(current, previous /*null when async*/ ) {
var ritmis = new GlideRecord('sc_task');
ritmis.addQuery('request_item', current.request_item);
ritmis.addQuery('assigned_to', current.assigned_to);
ritmis.query();
if (ritmis.next()) {
gs.addErrorMessage('Assigned user already has another task for the RITM. Please assign it to othe user');
current.setAbortAction(true);
}
})(current, previous);
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 02:27 AM
I have wirtten this BR on ritm table ,
Here we are triggering sequential task . I am going to assign same person to 2nd task it should through an error .Which is not working ,
@Jaspal Singh Please provide me solution to fix this issue