Disable the option to add comment directly from the activity - Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2018 02:13 PM
Hi,
We would like to control the actions the the end user perform when incident is in resolved state. Our requirement is that if a user would like to comment after incident is resolved, he need to press the reopen button and he must add comments.
Before ServicePortal, we were able to do it since there was the comments field for and user, and UI action to reopen.
Now in service portal, there is the option to add comments using the activity so we can't control it.
Is there a way to hide / limit the option to add comments using the poSt button in activity?
If we use ACL over the comments field, it block both the comments field and the comments from Activity ( we need the comments field available for the user)
We need something the will hide / limit only the comments on activity
Thank you!
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2018 06:24 PM
You will have to clone the Form widget and then the widget-ticket-conversation widget to achieve this.
After cloning the widget-ticket-conversation widget, you need to add your condition in the service script to set the post button disable when state is Resolved.
In line no 32, check
if (gr.getValue('state') == 6)
{
data.isPosting = false;
}
And after cloning the Form widget, you will have to add you code to use the new ticket widget id in the below section in the server script
Then open the Page where these widget is used in a designer mode. Remove the existing widget for form and add you new form widget.
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2018 01:23 PM
Did this work for you?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 10:29 AM
Hi Sanjiv,
I have on issue in Service Portal. When an end user with no roles creates an Incident in Service Portal it gets submitted.
And after submission when he opens that particular ticket then one error message appears at top as he can't able to view the ticket conversation.
Thanks,
SNOW@Das

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 02:21 AM
Hi Sanjiv,
The activities of the end user are visible in the Service Portal on the form, but the activities of Admin/ITIL user are not visible. Whereas all the activities are visible when we are login to CMS. So how can I achieve this functionality within the Service Portal?
Regards
Sudipta