Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,466,614
Community Members
 
Community Events
176
Community Groups

Convert HTML to Jira WikiMarkup

While Atlassian made some workaround ways to convert Jira WikiMarkup to HTML.

There is no way to do the other way around and convert HTML to Jira WikiMarkup.

I saw all over the community, a lot of people looking for a way of doing it.

So i decided to create packages for any environment people asked me:

Nuget package for .Net : https://www.nuget.org/packages/Html2JiraMarkup/

npm package for JS: https://www.npmjs.com/package/html-2-jira-markup

 

Hope it will be useful for many other people.

You are welcome to say thanks or ask for package to another language / framework and i will try to do my best.

 

Thanks :)

15 comments

@Nir Haimov  can you share any libraries for Java. To Convert Html to Jira Markup?

Nir Haimov Community Leader Nov 30, 2021

Hi @Anandraj Rajaram 

I will try to find some free time and create library for Java too.
i will update with link once i'm done

Nir Haimov Community Leader Jan 07, 2022

Hi @Anandraj Rajaram 

Sorry for keeping you waiting for nothing.
Eventually, i will not create a Java library, i tried to, but found myself too long around it, so decided to let it go.
You can however look at the implementation i did in one of the exiting packages, and try to do the same in Java

Thanks, @Nir Haimov . I got this library from Atlassian

<dependency>
<groupId>com.atlassian.renderer</groupId>
<artifactId>atlassian-renderer</artifactId>
<version>8.0.5</version>
</dependency>

 and temporarily solved with the below method

convertXHtmlToWikiMarkup

but just got few minor issues like the above method is not converting <BIG> html tags

Hi Nir - This is great. I'm looking for exactly this - but in PowerShell (!)

Is that easy to provide ? If so would you be kind enough ??

Thanks ;) Andy

Nir Haimov Community Leader Jan 08, 2022

Hi @Andrew Hines ___ 

Sorry, but i'm not familiar with PowerShell

Hi @Anandraj Rajaram ,

can you please guide me how you resolved this issue?

where you added the library?

<dependency>
<groupId>com.atlassian.renderer</groupId>
<artifactId>atlassian-renderer</artifactId>
<version>8.0.5</version>
</dependency>

and where and how you used below method? 

convertXHtmlToWikiMarkup

Hello, @Nir Haimov  In one of your answers in this thread you said  "You can however look at the implementation i did in one of the exiting packages, and try to do the same in Java".

Is this open source? If yes, can you provide repository links? I am interested in C# sources.

Thank you

Nir Haimov Community Leader Mar 10, 2022

Hi @Fabio Silva 

This is not exactly an open-source.
What I meant is, if you use one of my packages you can view the package content with your IDE (like visual studio)

Anyway, I made a package for C# https://www.nuget.org/packages/Html2JiraMarkup/

Hi @Nir Haimov ,
If we have table tags in html string its not getting recognised in jira, its just printing table as is. Any known bug ?

Hi @Nir Haimov 

I tried to use Html2JiraMarkup on C# and the return value was the same as the HTML original value.

Am I missing something?

 

Thanks,

Michael.

Nir Haimov Community Leader Aug 20, 2022

Hi @Michael_Leibovitch2 

Please share the HTML string you are trying to convert and your code where you tried to use it

@Nir Haimov I used Html2JiraMarkup, but it didn't convert fully. Is that how it is designed to work?

 

image.png

Nir Haimov Community Leader Oct 08, 2022

Hi @Suzanna Bryon 

Yes, It might not fully convert exactly as expected

Like Suzanna Bryon likes this

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events