Hi, I am trying jira 7.13.1 REST APIs through Power Automate and basically I want to add an attachment to an already existing task via the API, but I am not sure I am putting in the syntax right.
I get the message that The requested URL was rejected. Please consult with your administrator
My body of the flow looks like this: I am not sure that I actually specify the right id part, but does anyone have a clue of what might be the problem?
I can use the APIs in general to get info or to create an issue, but struggling with this one.
The REST API to add an attachment on an existing issue: How to add an attachment to a JIRA issue using REST API . You can also refer to the REST API doc; https://docs.atlassian.com/software/jira/docs/api/REST/7.13.1/#api/2/issue/{issueIdOrKey}/attachments-addAttachment .
Thanks,
Moga
Hi Moga,
Thanks for the input. I have read the documentation, but it doesn't help in this case as I am missing something. Fx where to indicate the pathway to the file that I am trying to attach in this case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is how the cURL command looks like:
curl -D- -u {username}:{password} -X POST -H "X-Atlassian-Token: nocheck" -F "file=@{path/to/file}" http://{base-url}/rest/api/2/issue/{issue-key}/attachments
For the Postman example, you can refer to this thread.
Apologies, I do not have any knowledge of the Power Automate application hence I would not be able to advise on how to configure the file parameter.
I will leave this thread to someone that might have experience with the Power Automate application.
Thanks,
Moga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.