Excluding users in a notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2014 02:15 PM
We recently spun off from another company and until all systems are separated, our service desk has some double duty. All of our employees at the new company are calling the new Service Desk but if they need something done that is still on the old company infrastructure (we will still be migrating things for a couple more months) a ticket has to be opened in the old company service now and assigned to the right person. We don't want our users getting notifications from the other system because they are calling our service desk and we want all notifications to be branded with our company info. So, the Service Desk has access to both systems and will actually be opening an incident in both systems. The end user will get notifications from our system even though the ticket is worked in the other system. Once the ticket is closed on the other company side our company's Service Desk tech will put the notes in our ticket which will fire off the correctly branded notification to the end user. Hope that all makes sense, it's kind of convoluted. I was talking with someone and we came up with trying to add a script to the notification that will only send notification if the company = ONEOK (which is the old company) but not send notification if the user's company = ONE Gas
All I did was add this to the incident notifications (opened and closed)
answer = ifScript();
function ifScript() {
var user = g_form.getReference('caller');
if (user.company == 'ONEOK') {
return 'yes';
}
return 'no';
}
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 11:06 AM
Thanks, done and working