UX Form Action 'Resolve' is not working to resolve incident in Service Operations Workspace

India T_
Mega Guru

Hello Community, 

 

There is an OOB UI Action called "Resolve" on incident form within Service Operation Workspace that's not proceeding to place the incident in resolve state.

I was hoping someone could give a suggestion to make this work. 

 

Service Operation Workspace UI Action aka UX Form Action.

IndiaT__0-1666798391348.png

 

Once you select the button you receive a pop up message:

 

IndiaT__4-1666798683367.png

Click "Resolve" and the popup modal remains. Does not do any action at all. However the "Cancel" button does remove the modal. 

 

OOB Configuration>>

 

UX Form Action

IndiaT__1-1666798448204.png

Declarative Action Assignment

IndiaT__2-1666798527739.png

Action Payload Definition

IndiaT__3-1666798576030.png

 

Script above is :

{
	"route": "sowformmodal",
	"fields": {
		"table": "{{table}}",
		"sysId": "{{sysId}}",
		"title": "Resolve"
	},
	"params": {
		"modalPath": "incident_form_resolve",
		"saveLabel": "Resolve",
		"isGFormSave": true,
		"setFieldOnSave": {
			"state": 6
		},
		"field1": "close_code",
		"value1": "{{fields.close_code.value}}",
		"displayValue1": "{{fields.close_code.displayValue}}",
		"field2": "close_notes",
		"value2": "{{fields.close_notes.value}}",
		"displayValue2": "{{fields.close_notes.displayValue}}",
		"field3": "parent_incident",
		"value3": "{{fields.parent_incident.value}}",
		"displayValue3": "{{fields.parent_incident.displayValue}}"
	}
}

I do see to set State field to "6" but I do not see anything that mentions close out the modal.

State choices.. show "6" is correct for incident table. 

 

IndiaT__5-1666798867609.png

Any Suggestions?

 

Thanks in advance!

 

16 REPLIES 16

I found a way to get this done.  Somewhat of a 'hack' and could certainly use some script enhancements to make it more configurable.  Basically, you 1.  Add your fields to the 'SOW Modal' view on the incident form (outside of UI Builder) 2. create a variant of the SOW Form Modal SNC page. 3. Modify the Initial Form Data script.  

 

I found that if you didn't add the fields to the SOW Modal view on the incident form, then they would not show on the UI Builder modal form (even if you script them in).  There is another SOW view on incidents that you can add fields to if you want them to display on the record form. 

 

I have outlined the entire process in the attached document.  

curtisschmidt
Tera Contributor

Looks like this is a known issue:

KB1202338 Service operations Workspace: Resolve button does not work on incident form
 
Hopefully it gets fixed soon