We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

On PTASK table, when Assignment Group changes, automatically it should set back the State to "New"

AbdurRahmanSnow
Tera Guru

Good afternoon.
Requirement is: On PTASK table, whenever we change the Assignment group and save the record, it should set back the state to "New", if the States are in Assess or Work In Progress.
1) I tried using Client Script, but it worked only on Front-end and after record saving, it again sets back the earlier state and gives an error message as below:
Invalid state transition. Can not update from state 'Assess' to state 'New' with given values.

AbdurRahmanSnow_0-1768471918632.png

2) I tried to create a new State Model for PTASK for "New" State but it does not change the State to "New", upon Assignment group change.
3) I also created a Business rule that sets back the PTASK State back from "New", "Assess" and "Work In Progress", to "New", upon Assignment group change, but this too, does not work.

It always gives me the above error.
Please help, as I tried but nothing works. I would be grateful for this.
@Ankur Bawiskar @Dr Atul G- LNG @Viraj Hudlikar 

2 ACCEPTED SOLUTIONS

But why do you want to change to new again? As per process, a team works on one task, and if you need another team to work, a separate task should be created—not the same task. Following the process, this would not be a valid use case.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Mate, I agree this is a client need, but this is a process violation. The purpose of a task is to track each team’s progress individually. If reassignment is required, then there’s no purpose in using a PRB task.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

25 REPLIES 25

Hi @Ankur Bawiskar ,
It was in Assess state, when the Assignment group was changed. 

@AbdurRahmanSnow 

Since you are moving from Assess -> New, there is no state model to handle this

Create 1 for New and Enter Condition: State [IS] Assess

Then try

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar 
Sorry, it is not working. Please help. I created the "New" State Model.

AbdurRahmanSnow_0-1768478960057.png

Total:

AbdurRahmanSnow_1-1768478988915.png

 

@AbdurRahmanSnow 

will have to check in my PDI once.

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

@Ankur Bawiskar , yes please. That will be really helpful.