Service Portal / Incident - Stop users from adding comments on Closed / Cancelled Tickets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2018 08:25 AM
Hello,
I want to Stop users from adding comments on Closed / Cancelled Incident Tickets (basically inactive tickets) from Service Portal. How can I do that in the most easy way?
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2018 08:34 AM
On your Ticket Conversation widget find HTML Template line (32)
<form ng-submit="postEntry(data.journalEntry)" id="sand">
change it to
<form ng-if="data.active" ng-submit="postEntry(data.journalEntry)" id="sand">
and add to Server script after
gr.get(data.sys_id);
if (!gr.canRead())
return;
data.active = gr.getDisplayValue('active') === "true";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2018 03:32 AM
That was extremely helpful Mike, thank you for sharing this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2020 07:31 AM
Hello Mike,
I've tried this and it worked partially...
Initially , the comments section is enabled for all the states. We've checked in widget configuration and modified the html script. From then, the comments section is disabled for all the states. Could you please help me further .. Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2018 09:30 AM