SCTASK State Automatically Changing from Cancelled to Closed – Successful while marking as inactive

zee15
Tera Contributor

Hi
I am currently working on a scenario where the SCTASK should be set to Active = false when it is cancelled.
I noticed that there is an out-of-the-box Business Rule that updates the SCTASK record to Active = false when the state changes to:

  • Closed/Resolved (backend value: 4)
  • Closed – Successful (backend value: 3)
  • Closed – Skipped (backend value: 7)

zee15_0-1782451969170.png

 

To achieve my requirement, I created a new Business Rule and added an additional condition for when the state changes to Cancelled.

zee15_1-1782452039359.pngzee15_2-1782452071411.png

 


However, I am facing an issue: whenever I try to set the SCTASK state to Cancelled, it automatically changes to Closed – Successful.

zee15_3-1782452193431.png

 


Could someone help me understand:

Why is the state automatically transitioning from Cancelled to Closed – Successful?
How can I prevent this behaviour and correctly set the SCTASK to Cancelled?

Any guidance would be greatly appreciated.
Thanks!

3 REPLIES 3

Tanushree Maiti
Tera Patron

Hi @zee15 

 

Close Successful is custom state. so Check the BR/Flow on SC_task ( customization), which is changing the state.

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Hi @Tanushree Maiti plz check the attached SS of BR. closed successful state (backend value: 3) is already mentioned in OOB BR

Hi @zee15 

 

My point was , label has been changed,, OOB state label is  as given in screenshot.

 

Anyways, did you get any chance to check the custom BR /flow/workflow?

 

TanushreeMaiti_0-1782455513594.png

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti