Change state to Resolve when Resolve button is clicked

Hermes14
Tera Contributor

Hi,
Is it possible to modify the Resolve button so that when it is clicked, the state will change to resolved? Thanks in advance for the help!
resolve button.png

1 ACCEPTED SOLUTION

kaushal_snow
Mega Sage

Hi @Hermes14 ,

 

Its a out-of-the-box feature as you click on Resolve button in Service Operations Workspace It will ask you put mandatory values like Close Notes before updating the incident.


For your Custom Solution: Create Your Own UI Action

 

If you're okay with bypassing the modal and simply want to change the state, you can create a custom UI Action.


current.state = 6; 
current.update();
action.setRedirectURL(current);

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Hermes14 

it's an OOTB form action and it invokes Modal from workspace client script.

It presents a modal with inputs to agent.

Why you want state to directly move without filling those mandatory fields Close code and Close notes?

AnkurBawiskar_0-1755660672566.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

kaushal_snow
Mega Sage

Hi @Hermes14 ,

 

Its a out-of-the-box feature as you click on Resolve button in Service Operations Workspace It will ask you put mandatory values like Close Notes before updating the incident.


For your Custom Solution: Create Your Own UI Action

 

If you're okay with bypassing the modal and simply want to change the state, you can create a custom UI Action.


current.state = 6; 
current.update();
action.setRedirectURL(current);

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

thanks, will proceed with creating a custom UI action

@Hermes14 

I believe I suggested the best approach to your question.

As per new community feature you can mark multiple responses as correct.

If my response helped please mark it correct as well so that it benefits future readers.

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