Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

re-open ui action for incident

Atchutaram
Tera Contributor

Hi ,

           I am configuring Re-open Ui action for Incident. This ui action should be visible only for caller and assigned to and state should change from resolved to in progress. how can i configure this.

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

Hi @Atchutaram specify the below condition in UI Action condition

(current.caller_id == gs.getUserID() || current.assigned_to = gs.getUserID() ) && (current.state == 3) //ensure correct state value for in progress

Regards
Harish

Hi @Harish KM  it is working but after clicking on re-open the incident is not re-opened and state is in still resolved state. how can i do this?

Hi @Atchutaram in script.section you need to set.the state value to.work.in progress

current.state = 3;// pass correct value here for work in progress state

current.update();

Regards
Harish

Hi @Atchutaram is it working?

Regards
Harish