Disable attachment when closed

Yassine6
Tera Guru

Hello,

I discovered that we can still add attachment via this standard tab (attachment) even if the case is closed:

Yassine6_0-1669026287460.png

I tried the onLoad client script with disableAttachments() function, but it didn't work.

Do you have a solution to avoid adding attachment for closed cases?

Thanks!

 

1 ACCEPTED SOLUTION

Yassine6
Tera Guru

Hello,

I had to create a Business Rule on sys_attachment table:

Yassine6_0-1669629312011.png

And then, this script:

Yassine6_1-1669629342868.png

 

View solution in original post

4 REPLIES 4

Mike_R
Kilo Patron
Kilo Patron

In the Standard ticket configs, you can add a condition to the Activity Tab Configuration

 

instanceName.service-now.com/nav_to.do?uri=ticket_tab_configuration.do?sys_id=a3a8d94b534a10105b51ddeeff7b1266

Mike_R_0-1669045171954.png

 

 

Find your standard ticket config from this list

isntanceName.service-now.com/ticket_configuration_list.do?sysparm_query=active%3Dtrue&sysparm_view=

 

Thank you Mike,

I went through this config too.

The problem is if the end user wants to check what were the attachments for a closed case, he can't.

Ok, the easiest way is to update your ACLs then. You can add an "active is true" condition to all of your write ACLs. This will ensure that the case is read only only when active. The attachments honors these same ACLs.

Yassine6
Tera Guru

Hello,

I had to create a Business Rule on sys_attachment table:

Yassine6_0-1669629312011.png

And then, this script:

Yassine6_1-1669629342868.png