You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Dear Community,
is anyone there who knows a javascript parser, which parses the jira formatted text to html (e.x. *Hello World* -> <b>Hello World</b>).
Thanks a lot!
Tobi
Hi Tobias,
the JIRA markup format is similar to the Textile markup format, but with some differences. As far as I know, there is no exact javascript parser for it.
However, there is a REST API call that can be made to the server to parse wiki markup into html. Example:
jQuery.ajax({ contentType: 'application/json', type: 'POST', url: '/rest/api/1.0/render', data: '{"rendererType":"atlassian-wiki-renderer","unrenderedMarkup":"*Hello World*","issueKey":"SUPPORT-1"}', success: function( response ) { console.log(response); } });
The issueKey portion of the parameters is not required, so if you are doing something that does not require the context of an issue, it will work without it.
Hi,
Do you have the reverse of this? i.e. HTML content to Jira Markup?
Thx,
Francois
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The htmltojira package on pipy got me half way, but failed in some ways:
1. It failed to convert html tables to jira tables.
2. It also allowed Jira's markup engine to process symbols (#, -) that I didn't intend as jira markup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for this. I will look into it.
I added methods to change all the tags piece by piece with some success, but I still get some unexpected results...
Rgs,
Francois
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, thanks a lot but i found a solution by myself.
I needed to add &expand=renderedFields in the URL and everything is fine.
@Stephen Deutsch your solution works fine too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.