I try to add attachment file to opened issue through POSTMAN or curl to Jira. However, it returns me 404 error. I do not have any problem with permissions, since, I checked all of them with other REST API from Jira, also, the file I send has only 4 kb of data and it is '.txt' file. I did my request according to following url: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-issue-issueIdOrKey-attachments-post
curl -D- -u n***a:1*****a -X POST -H "X-Atlassian-Token: no-check" -F "file=@notefromfin.txt" http://tracker.*******.com/rest/api/3/issue/QS*R-596/attachment
Hello,
You use Jira Cloud rest api. Are you on Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
I have to use this one, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, That is the problem.
You should use /rest/api/2/issue/{issueIdOrKey}/attachments:
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue/{issueIdOrKey}/attachments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you give me an exampl,e, I am Providing location of file with extension but its throwing error.
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.