Hey everyone,
Trying to add some automation to how we attach certain items to our tickets.
The following is the command I am attempting, but I'm getting a 301 moved on this. I'm having difficulty locating the documentation. This is with Jira Cloud.
`curl -u user:key -X POST -H "X-Atlassian-Token: no-check" -F "file=@somefile.txt" http://<org>.atlassian.net/rest/api/3/issue/<issue>/attachments/ -D-`
Please advise.
- Jose
This has been resolved. Looks like I needed both of these headers:
`curl -F "file=@somefile.txt" -u user:token --request POST \
--url 'https://<org>.atlassian.net/rest/api/3/issue/<issue>/attachments' \
--header 'Accept: application/json' \
--header 'X-Atlassian-Token: no-check'`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.