Remove Attachment Activity on Service Portal

Prateek kumar
Mega Sage

Hello Community

Is there any way to remove attachment activity from Ticket Conversations widget?

Screenshot attached below.

find_real_file.png

Any leads appreciated.


Please mark my response as correct and helpful if it helped solved your question.
-Thanks
1 ACCEPTED SOLUTION

saigattu
Kilo Expert

Hey Prateek,

 

First clone the widget and add the below condition on line number 64 of HTML template

"ng-if="e.element != 'attachment'"

This how it looks after the change:

 <li class="timeline-item" ng-class="::{'timeline-inverted': e.user_sys_id == data.stream.user_sys_id} " ng-repeat="e in data.mergedEntries" ng-if="e.element != 'attachment'">

Below screenshot for reference

find_real_file.png

That should work, do let me know if you face issues.

 

Thanks,

Sai Gattu.

View solution in original post

5 REPLIES 5

saigattu
Kilo Expert

Hey Prateek,

 

First clone the widget and add the below condition on line number 64 of HTML template

"ng-if="e.element != 'attachment'"

This how it looks after the change:

 <li class="timeline-item" ng-class="::{'timeline-inverted': e.user_sys_id == data.stream.user_sys_id} " ng-repeat="e in data.mergedEntries" ng-if="e.element != 'attachment'">

Below screenshot for reference

find_real_file.png

That should work, do let me know if you face issues.

 

Thanks,

Sai Gattu.

Thanks Sai. This is working as needed.


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Saurabh singh4
Kilo Guru

Hi Prateek

You can try this

When removing an attachment from "Ticket Attachments" in the Service Portal, the activity "Ticket Conversations" is not refreshed.

Steps to Reproduce

 

  1. Submit a catalog request in Service Portal
  2. Navigate to Ticket Form and attach a file via the clipper icon
  3. Remove the attachment in "Attachments"

Expected behavior: The attachment is removed from the activity in "Ticket Conversation"

 

Please mark my answer correct and helpful , If this helps you in any way thanks in advance

Saurabh

Praveen75
Tera Contributor

Hi @saigattu I have the similar one where I need to remove attachment for HR cases that are closed. Pls help Thanks.