Greetings,
I am working with Power Automate to create issues in Jira automatically, however the Jira plugin for Power Automate doesn't allow to add an attachment, so I have been trying to use the HTTP action on Power Automate with the Method post to add the attachments, but so far it's not working.
I tried to test it with Postman as well with the same result.
Any ideas of what could be the problem, the error code it's showing me is: 404 XSRF check failed.
Thanks
hi @Sujaira Moughawiche you just need to add header to the request (as described in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post):
I just tested and it is working. Complete request configuration looks like:
Thanks @Martin Bayer _MoroSystems_ s_r_o__ It works on Postman now but still not working on Power Automate. I am trying to pass the File Content on the body but it's showing error 500.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not know Power Automate, can you share more information, screenshot of the configuration...?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The picture on my original post shows the HTTP action that Power Automate has available. I think the issue could be on how the file it's attach to the body.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry, I tried to google it but with no luck. It is definitely more about Power Automate, so it would be great to check with someone who knows this tool.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it does looks like an issue on Power Automate. Thanks.
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.
That might of use: https://powerusers.microsoft.com/t5/Building-Flows/Send-file-with-HTTP-Rest/td-p/263167.
Iryna
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.