Change model transition disable

imran rasheed
Tera Contributor

I would like to disable one of the change model transitions which is OOB. But I don't find the active field inorder to deactivate it. Only option I have over here is to delete. But I don't want to remove since it is OOB. Kindly let me know what can be done for this.

 

find_real_file.png

7 REPLIES 7

AMan1997
Tera Guru

Hi Imran,


I can assume your requirement is to disable the feature to cancel a change request in New state.

Since, you don't want to delete the "New to Canceled" OOB state transition and there's no way to disable it. You can alternatively disable the "Cancel Change" UI action when state = New!

You can achieve this by adding the below condition in Condition box of "Cancel Change" UI action:

current.state!='-5'

 

See below:
find_real_file.png

 


Please mark the answer helpful/correct based on impact!

Let me know in case of any concerns.
Thanks,

Hi Aman,

thanks for the reply. The cancel button UI Action is not visible when the ticket is in new state. But it shows in the state field choices. 

Hello Imran,

Then you can create a UI Policy and hide the 'Cancel' option from State choice values.

When to apply: State is New

Script:

function onCondition() {
    g_form.removeOption('state', '4');
}

//Canceled choice value is 4 in OOB config

Result:

find_real_file.png

Let me know if the above works.