While uploading an attachment to a task, there is always one task comment created per attachment. Is there any reason behind this behaviour? Is there any possibility to turn this off without disabling auditing?
My issue is that if I try to get all comments for process instance using
taskService.getProcessInstanceComments() I also get these attachment comments, which have no value for me. As a workaround I iterate over process’ tasks and call
taskService.getTaskComments() on each one, which seems quite tedious and slow.