-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
1
Issue Summary
At present there is no publicly available endpoint (Media API) for customers to acquire Media node data (ADF work item format), specifically this is in reference to he inability to obtain a mediaID for an attachment to be associated with a comment (Add attachment response is wiki-style also).
When using Get attachment metadata the older wiki-style format is returned with a filename. Without public availability of the Media API or a suitable proxy, it is not possible for customers to adopt a v3 only ADF solution.
Workaround(s)
- The ServiceDesk. API allows you to upload with comment, firstly by uploading temporary attachment which is made permanent when commented with an attachment:
- Also one is discussed here: https://community.atlassian.com/forums/Jira-questions/How-can-I-add-an-image-in-a-comment/qaq-p/952016#M515362 (Only works for images)
- Use the v2 REST API: Add Attachment and Add comment, where you can use a reference to the file in the body:
Here is a link to the [^example.txt] file.