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
Please sign in to leave a comment.
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!
Try this http://youtrack.jetbrains.com/rest/issue/IDEA-102151/description?wikifyDescription=true
_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?
I guess it's only supported for querying individual tickets?
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
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?
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.