How to prevent users resolving their own tickets for one specific service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 07:13 AM
On the Service Portal, users have the Actions menu, from which they can self-resolve any ticket that has them set as the caller.
We want to hide this option for one specific service, but I can't work out how to do it.
I have had a look in the Widget - Standard Ticket Actions and I can see that this code controls the visibility of the options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 07:55 AM
Hi Andrew,
You can add a new function to the 'incidentUtils' script include, with name similar to 'canResolveIncident' found in 'incidentUtilsSNC' script include. and then call the new function in your script above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 08:32 AM
I was actually a step ahead of you there, it was the incidentUtils script I tried modifying first..
I added this to incidentUtils
data.canResolve = incidentUtils.canResolveIncidentNew(incidentGr);
it threw the error
"Server Javascript error Method "toString" called on incompatible object"