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

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.