We have a use case where user can attach file/image in the comment section. But when we are retrieving comments for a particular issue we are not able to reference file which belongs to a particular comment and the attachments are present in other object called as attachment. the comments lies inside comment array. How can i get comments with the attached files in the comment section?
Hello @Ankush Sharma
I just try in my dev instance this API :
It retrieve all comment from an issue. When you have an attachment in a comment the API should return something like this :
"text": "hello "
Here what my comment looks like
Hope this helps
That i know already but the problem is the files i have attached when i gets the comments via rest api then the files i have uploaded, i am getting those files in attachment response and it was very confusing which file belongs to which comment and if comment section has more than one document then there is relation between the two.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events