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

There doesn't appear to be an option to run debugger on a Page Script in UI Builder. I may be missing the option.

I've opted for over-logging the Save Record page script and found that it is returning four fields: close_code, close_notes, parent_incident, number

Following the Action Bar Declarative Actions > Resolve (on incident) > client action (SOW Incident Resolve), there are three fields in the payload:

close_code, close_notes, parent_incident

 

parent_incident never appears on the modal, and I'm not entirely certain where that field is supposed to come from. I don't see it on incident or task. 

I don't know why number is appearing in the list of required fields, because it should never be empty, and certainly you wouldn't be expected to fill that in to resolve an incident. number is also not shown on the modal.

I have been able to print out the values of close_code and close_notes (which I fill in on the modal), as well as number (which is coming from the record), but parent_incident remains undefined.

Aviram
Tera Contributor

Hi,

Does anyone know how to add more fields to this modal/pop-up?

Is it possible to display a field based on conditions?

Following, I have the same question.  We need to add some additional mandatory fields to the dialog.  The resolve button resolves the incident, but bypasses the mandatory fields .. This is a deal breaker for using SOW for us.

Following, I have the same question.  We need to add some additional mandatory fields to the dialog.  The resolve button resolves the incident, but bypasses the mandatory fields .. This is a deal breaker for using SOW for us.

 

Following.. We have the same question as we have some mandatory fields that are not displayed.  The resolve button resolves the incident, but leaves those mandatory fields empty.  That is a deal breaker for us using SOW.