I need a correct procedure of adding an attachment to Issue programmatically.
When using REST api we need to provide user login and password. I can not get password for any user.
When using an existing method of creating attachment, which is:
CreateAttachmentParamsBean attachmentParamsBean = <span>new</span> CreateAttachmentParamsBean.Builder(<span>new</span> File(path),
filename, <span>"text/plain"</span>, context.getLoggedInUser(),
issue).build();
ChangeItemBean bean = ComponentAccessor.getAttachmentManager().createAttachment(attachmentParamsBean); Attachment is not seen in issue history log. Can anyone help me with this? Thank you