how to assign a user to default assigned_to in SC-Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 11:52 PM
Hi Guys,
How to default assign a particular user as default assigned to in SC_TASK.
Thank!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 12:05 AM
Hi @tGhadage Can you rephrase your question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 12:41 AM
Hi @Sid_Takali ,
actually what I want to implement is if the SC_TASK with the description ( For Eg: Testing please ignore ) then it should get assigned to user name Abel Tuter.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:28 AM
Hi @tGhadage I have tested the below script on my PDI on Incident form.
1. Create before insert Business Rule on sc_task table.
2. Use below code
(function executeRule(current, previous /*null when async*/ ) {
if (current.short_description.indexOf("Testing please ignore") > -1) {
current.assignment_group = "add sys_id of assignment group";
current.assigned_to = "add sys_is of assigned to user";
}
})(current, previous);
Please mark my reply Correct/Helpful
Regards,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 03:03 AM
here also we need to check if the sc_task is open or close if the task is open (Newly created) then only we need to assign the task to Abel Tuter.