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 

17 REPLIES 17

Ankur Bawiskar
Tera Patron

@AbdurRahmanSnow 

I believe issue is because of State model only which is blocking the update.

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

Hi @Ankur Bawiskar . Thank you for your reply.

These are the 3 State models on PTASK. Please check

AbdurRahmanSnow_0-1768472609793.png

1)

AbdurRahmanSnow_1-1768472630122.png

2) 

AbdurRahmanSnow_2-1768472657696.png

3) 

AbdurRahmanSnow_3-1768472684065.png

 

Hi @AbdurRahmanSnow 

It looks good and appears to be out of the box (OOTB). Could you please try this in a PDI, or possibly repair the plugin once and check again?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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]

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

@AbdurRahmanSnow 

what's the state of PTASK when group is changed?

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