Hello, I am trying to send a comment through the REST API but I don't see in the documentation a valid endpoint to send an attachment to a comment, thanks
In JIRA, attachments are not bound to comments, but rather to specific issues in JIRA. There is way add attachments in JIRA via REST, the endpoint in JIRA is /api/2/issue/{issueIdOrKey}/attachments
https://docs.atlassian.com/jira/REST/server/#api/2/issue/{issueIdOrKey}/attachments-addAttachment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the point of view of us users this is a lie. The GUI very clearly allows the user to add an attachment via a comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes! The GUI has a clear segregated way to provide attachments to a comment and that shows in the comment itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm trying to duplicate the functionality of the JIRA interface in Salesforce, but I'm having some trouble. I've been able to add files and comments, but I'm unable to attach a file to a comment. Do you have any ideas or possible fixes for this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's the concept:
"!sebastien-jermer-n7DY58YFg9E-unsplash.jpg|width=2048,height=1536!\n\nThis is a sample image."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem here is that jira escapes the added image with backslashes.
!logo.png|! becomes => \!logo.png\|\!
and will therefore not be displayed on the comment.
Any way to avoid this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are some examples of using the API here:
https://developer.atlassian.com/confdev/confluence-server-rest-api/confluence-rest-api-examples
but maybe you can explain better what you are trying to do?
If you want an attachment to be diplayed inside a comment, you will probably have to first attach the attachment to the page (I don't think you can attach an attachment to a comment, only to its parent page), and then submit a comment with the necessary storage format (you can look at the storage format of an attachment displayed in a page to see what you need).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.