Ticket Conversation - Need to make comment Read only for closed tickets

nikhil2810
Tera Contributor

Hi All,

Currently Comments field let you add message even to the closed ticket but we have a requirement that it should let add a message only when a ticket is open.I'm not sure how should I go and do it any leads will help a lot,.

Thanks,

Nikhil Gadodiya

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Nikhil,



This would be done via ACLs. No scripting necessary - a condition builder such as "Active | is | true" is likely granting write access to one or more fields while the record is active and another ACL is granting access to comments after that. Ensure your access control lists prevent writing after the record is closed.



Docs: Access control rules


Docs: Contextual security  


Security Best Practices - ServiceNow Wiki


View solution in original post

15 REPLIES 15

Hi Craig,

 

I wanted to hide additional comments text area for closed cases.

Reason: User should not add additional comments on closed cases.

 

Thanks,

Poojitha BN 

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

For who is it open? End users can't comment on a closed ticket OOB.



//Göran


vinothkumar
Tera Guru

Hi Nikhil,



To accomplish this, you have to modify the ACLs, you have to select the table and the field as comment and restrict the write access by providing appropriate role or return the answer as false.



Using Access Control Rules - ServiceNow Wiki


poojitha bn
Giga Expert

Hi Nikhil,

 

I have a same requirement like Hide additional comments text area for closed cases in HR Portal.

I have added below condition to sn_hr_core_case.comments Write ACL.

Condition : Active is true

This is not working only when I open closed case for first time in Portal.

Note : After refresh or after 2nd click its working.

On first load:

find_real_file.png

after refresh:

find_real_file.png

Please let me know how to fix this.

I haven't work with HR, but it sounds like you might have more ACLs there. Is there any more acl that hits: sn_hr_core_case.comments?

//Göran
Feel free to connect with me: