Hello,
I'm trying to add a file to an issue inside a comment, in some websites and other people's questions I found that they are doing it like this:
{
"body": "Comment",
"content": {
"type": "mediaSingle",
"content": [{
"type": "media",
"attrs": {"type": "external", "url": "C:\\FileURL"}
}]
}
}
But for me it's not working, In the issue I can see the comment but not the file. Any suggestions?
Thanks
Welcome to the community.
If you want to achieve this via the API.
You first need to add the attachment to the issue, before you can refer it in a comment.
See this post for more information: https://community.atlassian.com/t5/Jira-Software-questions/How-can-I-add-an-image-in-a-comment/qaq-p/952016
Thank you! That was the problem. I was trying to add the file directly from the comment instead of adding it before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to community @Diego Manríquez !
In order to do this:
Click on the picture icon as it adds more file types than just an image. I added a PDF for example.
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.