Please may I get some assistance.
I am able to add attachments to issues from mail items using the following call:
messageHandlerContext.createAttachment(fileToAttach, fileName, attachment.getContentType(), user, mutableIssue);
However I cannot workout how to update the Issue's change history if the mail item is a response with an attachment added.
Read this link carefully, it gives you the answer
you should call this
inorder to change the history of the issue.
I found the below just before I went to lunch:
and with a little reading I found that exact call.
But as you have provided the answer I shall mark this as such.
Thank you for your time.
I dono this is right but you can try this
use this method to change it.
Hope this helps.
When you create a issue , then no entry gets created in issue history .
but if you update any field through post-function , then the entry goes into the issue while creating it.
After creation of issue only , any updation to issue have their entry in the history.so , attachment will not be reflected in the history.
Since , you are creating the issue through mail no updation will be reflected in history
Let me know what wrong i have said that you have downvoted my comment.
the changehistory api only gets history details.(doesnt update history)
is the create attachment through mail done by you , a issue update event ?
Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site – to help teams like yours make more informed decisions when choosing an inc...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events