We have a Release Notes custom text field in YouTrack. We pull it via API to display in the external release notes generator app.
The issue we came across is that there's no way to get markdown text converted to HTML using YouTrackSharp client.
YouTrack API itself returns markdown text transformed to HTML when requested. For a example a request like this:
http://youtrackurl/api/issues/AB-2420?fields=$type,id,summary,customFields($type,id,projectCustomField($type,id,field($type,id,name)),value($type,avatarUrl,buildLink,color(id),fullName,id,isResolved,localizedName,login,minutes,name,presentation,text,markdownText))
returns markdownText property:
This is all the "new" YouTrack API, and YouTrackSharp still uses the previous API. We're currently looking at updating the library to use it, but no ETA yet.
Hello,
We have a Release Notes custom text field in YouTrack. We pull it via API to display in the external release notes generator app.
The issue we came across is that there's no way to get markdown text converted to HTML using YouTrackSharp client.
YouTrack API itself returns markdown text transformed to HTML when requested. For a example a request like this:
http://youtrackurl/api/issues/AB-2420?fields=$type,id,summary,customFields($type,id,projectCustomField($type,id,field($type,id,name)),value($type,avatarUrl,buildLink,color(id),fullName,id,isResolved,localizedName,login,minutes,name,presentation,text,markdownText))
returnsmarkdownText
property:I tried to use a few other markdown libraries to manually convert markdown to HTML, but they produce a different result than YouTrack.
Please let me know if exposing markdownText property is in the roadmap.
Alex