Hi @moistcity999:
Use client script for your “Task” doctype.
frappe.ui.form.on('Task', {
refresh(frm) {
$('div.timeline-message-box[data-communication-type="Communication"]').hide();
$(".timeline-badge").hide();
$('[id^="communication"]').hide();
$('div.timeline-item[data-doctype="Communication"]').hide();
},
});
Hope this helps.