Hide the feedback on the kb articles from the end user

vidyashreehr
Kilo Contributor

how can I display/show the comments box, yet hide comments from non-knowledge_admins?   We want all users to be able to submit comments on an article, however we want only knowledge_admins to be able to view those comments once submitted.

7 REPLIES 7

Ulrich Jugl
ServiceNow Employee
ServiceNow Employee

Hi delone,



you would either need to adjust the UI Macro as described in the article or the Widget in the ServicePortal to get this working. Unfortunately, the system property provided in the standard only allows "all or nothing" for commenting.



Best regards,


Ulrich


Dave Smith1
ServiceNow Employee
ServiceNow Employee

Comments are intended to be public, because they're providing visible feedback that should benefit users.   If you wish a user to send private feedback, they should use the "Flag" button instead.   However, the comment isn't restricted only to knowledge_admins, I believe knowledge_managers can also view them (and article authors, too)



I'm not sure if disabling commenting also disables flags; they both show up in the same list.



In my opinion, restricting visibility of comments to a select group is the wrong approach, for two reasons:


  1. it negates learning benefits gained by any readers - imagine what would happen if replies to these posts were restricted only to the writer and original poster
  2. it burdens knowledge_admins with a task not intended for them (knowledge_admins should be creating KBs, not managing them)

NtN1
Kilo Explorer

For Portal Only

Edit knowledge Properties:

1) Make list of Roles Field Empty

2) Clone the widget KB Article Comments

Server Script:  

data.role=gs.getSession().getRoles();

HTML:

replace 

  <div ng-if="data.response" class="alert alert-success">{{::data.response}}</div>

with 

  <div ng-if="data.response && data.role" class="alert alert-success">{{::data.response}}</div>