Auto change schedule phase to implement phase in change request & SCTASK, RITM state to auto change

Arjun Reddy Yer
Tera Guru

Can anyone help me @Vasantharajan N @Ankur Bawiskar @Ahmmed Ali 

 

As I need to auto change the change request phase from schedule phase to implement phase tried with wait for condition in work flow but it's not changing from schedule phase to implement phase.

Can it be possible with BR?

And based on Change Request State SCTASK state needs to change if the

1.) Change Request State is Closed then SCTASK, RITM State should auto change to Closed Complete

2.) Change Request State is Cancelled then SCTASK, RITM State should auto change to Closed InComplete

 

As off now when SCTASK State is changed to Closed Incomplete then RITM State is Changing to Closed Complete & Stage is Changing to Completed & Change Request State is Changing to Cancelled

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Arjun Reddy Yer You can use the Timer activity https://docs.servicenow.com/bundle/utah-servicenow-platform/page/administer/workflow-activities/refe... inside the workflow to wait for the start time and use the Set State https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/workflow-activities/refe... activity to change the state of the change request.

 

 For 

1.) Change Request State is Closed then SCTASK, RITM State should auto change to Closed Complete

2.) Change Request State is Cancelled then SCTASK, RITM State should auto change to Closed InComplete

 

You need to write a onAfter Update business rule on Change Request table and add a filter condition when state changes to closed or cancelled. 

 

Inside the script change the state of RITM and SC Task accordingly.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Arjun Reddy Yer You can use the Timer activity https://docs.servicenow.com/bundle/utah-servicenow-platform/page/administer/workflow-activities/refe... inside the workflow to wait for the start time and use the Set State https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/workflow-activities/refe... activity to change the state of the change request.

 

 For 

1.) Change Request State is Closed then SCTASK, RITM State should auto change to Closed Complete

2.) Change Request State is Cancelled then SCTASK, RITM State should auto change to Closed InComplete

 

You need to write a onAfter Update business rule on Change Request table and add a filter condition when state changes to closed or cancelled. 

 

Inside the script change the state of RITM and SC Task accordingly.

Below is the workflow which I had designed but this workflow is not separately designed for change request.

As when the RITM got approved SCTASK & Change Request are getting created.

ArjunReddyYer_0-1682483041822.png

Can you help me with the script onAfter Update business rule on Change Request table and add a filter condition when state changes to closed or cancelled.