Issue Activity History does not show history of attachment add/remove

I add the attachment with the following code:

new CreateAttachmentParamsBean.Builder(new File(filePath),
                filename, "text/plain", context.getLoggedInUser(), attachment).getIssue()).build();

Attachment is added to the panel, but is not shown in the history. Is it possible to connect that operation to the current user? Please help.