Enable 'Cancel Change' in Review State

Sherwin G
Tera Expert

Hi Team,

I am tasked to enable the 'Cancel Change' UI action for all Changes in Review state. I am quite new to this and will need your expertise.

The current condition for this UI action is set as:

gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isCancelAvailable()

find_real_file.png

What would be the best approach for this one?

1 ACCEPTED SOLUTION

update as this

gs.hasRole('itil,sn_change_write') && (new ChangeFormUI(current).isCancelAvailable() || current.state == 0)

Regards
Ankur

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to check the existing UI action condition and modify accordingly

Regards
Ankur

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

Sherwin G
Tera Expert

Any suggestion?

update as this

gs.hasRole('itil,sn_change_write') && (new ChangeFormUI(current).isCancelAvailable() || current.state == 0)

Regards
Ankur

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

Thanks heaps Ankur, this one works perfectly for my requirement.