Customizing Resolve Incident button (UI Action Resolve_Incident)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2013 08:49 AM
I am trying to change the behavior of the Resolve Incident button:
Right now, it changes the Incident status to Resolved AND closes current Incident form (back to the list of incidents).
I want it to just replicate what would be the action of changing the drop-down on the Incident State field to Resolved (not leaving the Incident screen)
The code behind this UI Action (resolve_incident) is:
*********************
Condition:
(current.incident_state != 7 && current.incident_state != 6)
Action:
current.incident_state = 6;
current.update();
*********************
I've tried to comment out the update() line, but it would still close the form, and I am back to the list of incidents.
Any suggestions would be greatly appreciated.
- Labels:
-
Incident Management