Need to generate a change task automatically based on category selection

Rajamouly
Tera Expert

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.

 

Rajamouly_0-1667908699187.pngRajamouly_1-1667908766381.png

 

6 REPLIES 6

Brad Bowman
Kilo Patron
Kilo Patron

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.

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;

 

 

 

Saurav11
Kilo Patron
Kilo Patron

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.

 

Saurav11_0-1667910627557.png

 

Please mark my answer as correct based on Impact.

HI @Saurav11 , The change task is getting created without filling mandatory fields (OOB).

 

Rajamouly_0-1667911026594.png

 

But our requirement it is not generating any change task