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.

Incident Standard Ticket Actions widget Help

Betty9
Tera Contributor

when I submit an incident in service portal, there is a 'Resolve' Action, when I clicked Resolve, the State changed to Resolved, I want to make this 'Resolve' Action can clicked only when State is In progress. What should I do? Thank you!

 find_real_file.png

1 ACCEPTED SOLUTION

Luke Van Epen
Tera Guru

You need to modify the widget Incident Standard Ticket Actions

There is a data.canResolve flag there in the server code, which you can edit to add your condition such as when incidentGr.state == 2; //or whatever your WIP state is

View solution in original post

2 REPLIES 2

Luke Van Epen
Tera Guru

You need to modify the widget Incident Standard Ticket Actions

There is a data.canResolve flag there in the server code, which you can edit to add your condition such as when incidentGr.state == 2; //or whatever your WIP state is

It worked, Thank you!