I want to make a ui button 'REOPEN INCIDENT' on the incident form. Whenever we clicked on this updates will happen on the server side like incident state become close to active and on the client side comment field become mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2018 05:48 AM
I want to make a ui button 'REOPEN INCIDENT' on the incident form. Whenever we clicked on this updates will happen on the server side like incident state become close to active and on the client side comment field become mandatory.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2018 11:50 PM
HI Silentkiller,
You can create your own custom UI Action. Try below code
Action name:-reopen_incident
onclick:-reopenIncident()
g_form.setMandatory('comments', true);
gsftSubmit(null, g_form.getFormElement(), 'reopen_incident');
}
current.incident_state = 2;
current.update();
gs.addInfoMessage(gs.getMessage("Incident reopened"));
action.setRedirectURL(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2018 12:43 AM
Thanks Shweta. Its wrking..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2018 12:47 AM
Hi,
If you find the solution please mark it as correct.