Converting wiki markup to HTML

I am currently using the Rest API to display some tickets on an external website that can be viewed by customers. I am currently using a wiki-to-html parser to change the formatting which works for most of the markup but not all of it and was wondering if there is a parser that has been designed to convert the youtrack wiki markup to HMTL
9 comments
Hello, Kit!
You can use parameter wikifyDescription=true in query, in this case issue description and comment text can will be returned to you in HTML. This parameter can be used with all requests, that return issue or its comments.
If you have any more questions - feel free to ask!
0
Thanks Anna, that worked great
0
Is there something similar for Issue.Description when using the REST API?
0
I know this was an older message, but I'm trying to do this and still having problems.  I'm using the YouTrackSharp library using the GetIssuesBySearch method.  I tried changing the call to:

_connection.Get<MultipleIssueWrapper, Issue>(string.Format("project/issues?filter={0}&max={1}&after={2}&wikifyDescription=true", encodedQuery, max, start));

But that didn't affect the descriptions at all.  Is there some other way (or correct way) to do this?
0

I guess it's only supported for querying individual tickets?

 

0

Hello Naftoli! You can get all issues in a project with the wikifyDescription parameter using this method: https://www.jetbrains.com/help/youtrack/incloud/2017.2/Get-Issues-in-a-Project.html

0

Thanks, but I'm using the API that doesn't take a project: https://www.jetbrains.com/help/youtrack/incloud/2017.2/Get-the-List-of-Issues.html

Any chance it could be added there anytime soon?

0

That's right, your method doesn't have this parameter, so we can only suggest to get a list of issues and then wikify them one by one.

We're going to change this situation when we release our new REST API, but we don't have any estimations on the subject at the moment.

0

Please sign in to leave a comment.