How to embed HTML using Jira Rest API v2?

manuel.abascal December 8, 2020

I'm trying to embed a video using Jira Rest API v2 & the video's URL. I tried to embed it using HTML & iframes like so:


{{html}}

<div style="position:relative;height:0;padding-bottom:56.25%">

<iframe src="${`${artifactUrl}artifact/build/videos${path.replace( 'cypress/integration', '' )}.mp4`}" width="500" height="500" frameborder="0" style="position:absolute;width:100%;height:100%;left:0" allowfullscreen></iframe>

</div>
{{html}}

 But it just outputs this as plain text, how can I accomplish this behavior?

Thanks in advance!

EDIT: Added code format & rephrased the question.

1 answer

1 accepted

1 vote
Answer accepted
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 10, 2020

Hello @manuel.abascal!

As I understand, you need to embed a video using an iFrame via HTML.

After reading your question, I believe that your questions is pointing towards Jira rather than Confluence. With this in mind, I can direct you into this similar thread, where someone else tried to embed HTML in Jira:

The description field in Jira is a plain text field and will not render HTML. We can use Wiki markup formatting within it. More details here:

Let us hear from you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events