cancel change

kunal16
Tera Expert

As an OOB configuration, we have a UI action 'Cancel Change' that cancels a change request. This UI action will be visible to all the ITIL users.

I want to restrict the visibility conditions of this UI action such that it should be visible only

1. to requested by users

2. at states New(-5), Assess(-4), Authorize(-3) and Scheduled(-2).

I tried to update the condition but of no use.

gs.hasRole('itil') && (gs.getUserID() == requested_by) && ((current.state == -5) || (current.state == '-4') || (current.state == '-3') || (current.state == '-2')) && new ChangeRequestStateHandler(current).canMoveTo("canceled")

Kindly help.

Thanks in advance!!

1 ACCEPTED SOLUTION

Mihir Mohanta
Kilo Sage

Try below condition



gs.hasRole('itil') && (current.requested_by== gs.getUserID()) && ((current.state == '-5') || (current.state == '-4') || (current.state == '-3') || (current.state == '-2')) && new ChangeRequestStateHandler(current).canMoveTo("canceled")




Thanks,


Mihir


View solution in original post

10 REPLIES 10

philkindrick
Kilo Contributor

Am I the only person who cannot seem to find a OOB cancelled action? I have been struggling to modify my workflow to address this need and have gotten nowhere.