change state back to new when field changes

Mitchell_Milo
Tera Contributor

Currently, when change request is created and assignment group is entered and submitted, assignment group is  grayed out and only members of that assignment group can change the assignment group to a different assignment group


If I am not a member of that assignment group, I still want to be able to be able to edit the make changes to the assignment group in an event I had submitted the ticket to a different group

 

And when the assignment group changes, I want the state of the change to switch back to new 

 

How can I get this done please

 

 

6 REPLIES 6

AshishKM
Kilo Patron
Kilo Patron

Hi @Mitchell_Milo , 

You need check any ACL or client script written on assignment group field and remove the applied restriction. 

 

For state change, apply the BR[after update] on change_request table with all valid condition [on assignment group ] and change the state.

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

shyamkumar VK
Kilo Patron

@Mitchell_Milo , ACL should be there is in Place which is handling the Assignment group restriction , on the second point it is not technically good approach as your restricting the assignment group on good purpose 

 

on the Last point you can write before update BR and give condition as Assignment group changes and in the script you can set

current.state=1;// update correct backend value

 

Note : Its not an best practice to move if the change is already Approved or Under waiting for approval as this makes issue on Workflow and you could see weired issues

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar