Need to generate a change task automatically based on category selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 04:00 AM
I want to generate a change task automatically, for this i have written after business rule which is not working.
Can anyone help me what's wrong in the below screenshot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 04:20 AM
The Change Task is likely getting created if you check the change_task.list in the left nav, but it's not getting associated with the current change request, so you don't see it in the Related List. Add this line before the insert:
Chgtsk.change_request = current.sys_id;
If it's still not working, trying removing the Filter Condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 04:33 AM - edited 11-08-2022 08:16 AM
HI @Brad Bowman Thanks for reply,
After adding below condition, the change task is getting created. But it is creating two change tasks
Chgtsk.change_request = current.sys_id;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 04:31 AM
Hello,
You need to fill all the mandatory fields present on the change task to have it created. I can see that OOB there is short descript and description field which is mandatory on creation of change task. Add those field to the script as well and it should work.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 04:37 AM
HI @Saurav11 , The change task is getting created without filling mandatory fields (OOB).
But our requirement it is not generating any change task