Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,205
Community Members
 
Community Events
165
Community Groups

How to convert Html to Jira WikiMarkup

Edited
Arjunan G I'm New Here Jun 21, 2022

I am developing one custom app Jira and fresh work CRM.

that time I am trying to add a description, but that time I have a value in HTML will convert HTML to Jira wiki markup using  html-2-jira-markup NPM this not working my code showing an error.

anything is possible another method you have is converting Html to jirawikimarkup

suggested me. 

1 answer

Hi @Arjunan G  Welcome to Atlassian Community!

I think you are looking for this link :- https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all

Thanks

V.Y

Arjunan G I'm New Here Jun 22, 2022

My question is how to create an API call body Description
I have code like this

    <h1>Biggest heading</h1>
    <h2>Bigger heading</h2>
    <h3>Big heading</h3>
    <h4>Normal heading</h4>
    <h5>Small heading</h5>
    <h6>Smallest heading</h6>
but i want this type of body 
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 1
},
"content": [
{
"type": "text",
"text": "Biggest heading"
}
]
},
{
"type": "heading",
"attrs": {
"level": 2
},
"content": [
{
"type": "text",
"text": "Bigger heading"
}
]
},
{
"type": "heading",
"attrs": {
"level": 3
},
"content": [
{
"type": "text",
"text": "Big heading"
}
]
},
{
"type": "heading",
"attrs": {
"level": 4
},
"content": [
{
"type": "text",
"text": "Normal heading"
}
]
},
{
"type": "heading",
"attrs": {
"level": 5
},
"content": [
{
"type": "text",
"text": "Small heading"
}
]
},
{
"type": "heading",
"attrs": {
"level": 6
},
"content": [
{
"type": "text",
"text": "Smallest heading"
}
]
}
]
},
anything is possible to convert this type of body

@Arjunan G  It seems that you are trying to add Description via REST API call and Description is having HTML tags ,right ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

159 views 1 3
Read article

Community Events

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

Events near you