fix: Change Task Status modifcation

AaravOjha
Tera Contributor

Make the change task status pending until the change is approved and then move to open once all approvals are completed.

Additionally, when a change is closed incomplete, make the change tasks cancelled.

 

 

when Ctask is created, set state = pending

when Change approval = approved, update ctask state = open

if Change state = cancelled, update change task state = cancelled

 

Please help with proper solution 

5 REPLIES 5

GlideFather
Tera Patron

Hi @AaravOjha,

 

where did you get stuck? Have you tried anything?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


I am new can guide me how to do this change 

i have created a dictionary

its moved to pending

but when i enter the planned start date its showing enter planned date change shoul be on access state

but its also not allow me to move change to assess without planned satrt and end date

 

Please provide details, I don't understand what's the goal

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Ankur Bawiskar
Tera Patron
Tera Patron

@AaravOjha 

My thoughts

1) When Change Task is created, set its status to Pending -> Before insert business rule on change_task and set State as Pending

2) When Change approval is approved, move related Change Tasks to Open -> business rule or flow on CHG table and update the Change Tasks

3) When Change is Closed Incomplete, update all Change Tasks to Cancelled -> Business Rule on change_request table state change to Cancelled to update associated Tasks

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader