Forums

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

How to get a comment from an issue and keep the text format

Zakaria October 30, 2018

Hello so i am using Jira api with java i can get all the comments i want but i am having some problems with keeping the text format for example if the text on the website is something like : if i have a world in bold

Done

the result is :  will be back :  *Done* the same thing if i have a red word the word will be something like :{color:#d04437}Word{color}*
is there anyway how to play around this ? because i am passing this string to an xls file and i want to print the text with the same format

Regards

 

1 answer

1 accepted

1 vote
Answer accepted
Tom Lister
Community Champion
October 30, 2018

Hi @Zakaria

the formatting in the Jira page is done by the wiki renderer. The text you are seeing is the raw wiki markup. You would need to find a library to re render it in another place. I assume it an open source library.

Zakaria October 30, 2018

thanks for you answer i will look for this library ! have a great day

Suggest an answer

Log in or Sign up to answer