How to attach document or file as an attachment when creating ticket in JSM using REST API’s
we have a requirement wherein user want to use whatsapp as an interface to raise ticket and when using this as a medium he wants to attach local files/snapshots when creating ticket
Hi @Marcus Jones @Thanks for the response. Is it not possible when creating an issue itself. This seems to be for the ones where request is already created
Perhaps another community member can answer that. This works for me since I am creating the ticket in the same workflow and then using the Key for the just created ticket to call the attachments API and add the attachment. So it actually ends up being two calls. one to create the ticket and one to add the attachments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marcus Jones can you guide how can I test this using POSTMAN
getting 415 error when in body i'm passing below details:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To use Jira-SD's REST API for attaching files and it is possible when creating an issue itself, follow these steps:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mayur,
The attachment API URL is
https://<yourinstance>/rest/api/3/issue/<IssueKey>/attachments
You need to make sure you have the header:
X-Atlassian-Token = no-check
I'm using power automate to enter the File Name and the Body/Content of the message as in the image below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Marcus Jones,
what's the Body contains?
I am using content bytes fetch from an attachment as shown in below image.
I am facing issue with an attachment format. When mail with an Image file. In jeera attachment file is getting created with format mismatched.
Getting below success response.
"mimeType": "text/plain; charset=utf-8"
Check with Postman for image Attachment API getting response ("mimeType": "image/png",)
Postman attachment works fine. How to implement the same with Power Automate HTTP request.
How to pass/change mimeType while calling Jeera Attachment API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.