I'm trying to attach an attachment to my Jira service ticket. I've found 2 URLs which could do this.
1.
{jiraUrl}/rest/servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile
2.
{jiraUrl}/rest/api/attachment/3/issue/{issueId}/attachments
I've sent to both the same parameters:
- X-Atlassian-Token: no-check
- accept: application/json
- multipart/form-data (file with name file)
(- Basic authentication)
When I sent my first request I receive a 500 response without further details.
When I sent my second request I receive a 404 without further details.
This is the official expected URL on using rest api to add attachments https://docs.atlassian.com/software/jira/docs/api/REST/8.1.0/#api/2/issue/{issueIdOrKey}/attachment .
Please note the causes for Response 404 and ensure you have the necessary permissions.
Let us know how it goes.
I've modified the request to the above URL. It worked perfectly.
Thank you for the quick response!
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.