Change request roll back to "New" state

nidhi12
Kilo Contributor

Hi All, need help to do this configuration

"change_manager" role user must have ability to bring change request back to "New" state. The ability should be allowed only till change request is at Scheduled state. Beyond scheduled must not allow.

 

Thanks in advance.

3 REPLIES 3

Harsh Vardhan
Giga Patron

use "Write" operation type ACL here and add condition in ACL based on your need. 

 

Change Request | state

Role: change_manager

Filter Condition 

 

State | IS one of | select the state value 

 

 

Sumanth16
Kilo Patron

Hi ,

 

Create a new UI action on change table and provide access to UI action for that particular role only.Write code 

Ui action like this:

  ((current.state == 'your state values')) && gs.hasRole('your role') && new ChangeRequestStateHandler(current).canMoveTo("new state value")

 

Thanks,

Sumanth

 

 

Michael Fry1
Kilo Patron

There is a UI action that comes out of the box named Revert to New. Just add to the conditions to match your requirements.