- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 01:57 AM
Hi Experts,
I have a button ( UI ACTION) called escalate on incident form. I want that when i click that escalate button, escalation email goes to assigned to 's manager and assignment group's manager.
Can someone help me achieving this ?
Thanks!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 03:23 AM
OK, if you want a popup you'll need to go to the client but you can still show an info message with the server:
gs.eventQueue('escalate_incident', current, current.assigned_to.manager, current.assignment_group.manager);
gs.addInfoMessage("Your incident is escalated");
action.setRedirectURL(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 02:55 AM
You will need to submit the form as well to save the comments, one of the few (only?) occasions where it's ok to use current.update();
gs.eventQueue('escalate_incident', current, current.assigned_to.manager, current.assignment_group.manager);
current.comments = "Your incident is escalated";
current.update();
action.setRedirectURL(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 03:13 AM
but that will save it in the ticket comments, i want this message to pop up as an alert or info message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 03:23 AM
OK, if you want a popup you'll need to go to the client but you can still show an info message with the server:
gs.eventQueue('escalate_incident', current, current.assigned_to.manager, current.assignment_group.manager);
gs.addInfoMessage("Your incident is escalated");
action.setRedirectURL(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 02:33 AM
Hi Paul,
I also want to show a message on incident form that "Your incident has been escalated" . I want this to happen when escalate button is clicked.
For this if I make UI action as client side, i will not be able to call gs.eventqueue.
Could you please help me how can I achieve this ?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 08:24 AM
@Learn SN - Were you able to tackle this requirement, Uma? If yes, how did you do it?