I have a S3 pre signed url with response headers set to a specific file name. when used it browser it downloads with a specific name, but when used in JIRA rest api attachment upload, name is same as original name name not the name set in response headers.
Hello @Arun T ,
Thanks for reaching out, and I would be happy to take a look.
It sounds like you are using the API endpoint "POST /rest/api/3/issue/{issueIdOrKey}/attachments" to upload an image but rather than using a local file as described in the documentation via the following:
-F "file=@{path/to/file}"
It sounds like you are using a remote location URL to a hosted image, Is this correct?
A possibility is that there is some sort of authentication issue between the remote host store As the system is not designed to map to a remote URL and a workaround I would recomend setting up your script to download the image to a local temp file for re-upload to Jira rather than mapping to the remote location directly.
There is a good example of this process outlined as a PHP script in the following thread:
If this is not the case, can you please include an example of the Calls formatting so I can take a closer look.
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.