How to restrict attachments from getting copied from HR tasks to parent case

shilpa344
Giga Expert

Hi All,

I wanted to restrict the copying of attachment from HR task to Parent case. Currently, when I close a task, attached documents gets copied to parent case.

Any help would be appreciated.

3 REPLIES 3

harishdasari
Tera Guru

Hi Shilpa,

Navigate to system Definitions --> Business rules and as shown in below screenshot in filter condition search with "SCRIPT" "contains" "GlideSysAttachment.copyas shown in the screenshot below.

 

find_real_file.png

 

find_real_file.png

 

Now You can see the  Business rules written on HR Task table to copy the attachment. Now based on your requirement you can make it inactive or you can add the condition.

Hope this is helpful.

Thank you.

 

 

 

Community Alums
Not applicable

Hi.  I was trying to find the same thing.  HR Core Task has a business rule named:  "Notify HR Case owner when all task close"

This BR calls the hr_task().updateAttachments() which transfers the task's attachments to the case.

So the best answer is to tweak the business rule to be more specific in its checks.

 

Hope this helps!

Bill

 

Hi William,

I am also trying to restrict the copying of attachment from HR task to Parent case. I have found the 

"Notify HR Case owner when all task close" business rule. Could you please provide me with an explanation on how to modify the business rule to be more specific in its checks?