Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Html to Jira WikiMarkup

Arjunan G June 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

0 votes
Vikrant Yadav
Community Champion
June 21, 2022

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 June 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
Vikrant Yadav
Community Champion
June 22, 2022

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

Like Robson Johny likes this
Robson Johny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2025

Yes, I too facing the same problem like quill editor html

to jira wiki markup(Jira version 2)

Suggest an answer

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

Atlassian Community Events