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

@Sherwin G 

Did you mistakenly marked your own response as correct?

Would you mind marking my response as correct as that worked for you

Regards
Ankur

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