Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
We need an option to convert html snippets to wikitext.
Use Case: We have a frontend running an html editor. After the user has completed the formatted text in the editor, we need to convert the content to wiki/markup to post it as an item via the API to codeBeamer.
In past versions, we have used POST to <baseURL>/cb/wysiwyg/convertHTMLToWiki.spr as a Workaround to get our payload in a wiki/markup format. This worked up to including version 21.09 (EMMA). Since Husky (current SP we are running is 2.0.0.5), this Request returns 403 forbidden instead. Is there another way we could do this conversion, either via API Request (there is wiki2html, so why not the other way around?) or via a helping computation in the tracker config?
Solved! Go to Solution.
Hi @Nico_M , Product Team may be aware of this requirement, please feel free to raise a topic at at https://community.ptc.com/t5/Codebeamer-Ideas/idb-p/codebeamerideas to inquire about any future implementation plans.
As for the topic, this is what I can add here:
POST /v3/trackers/{trackerId}/items
{
"description": "[{Html\n\n<b>bold</b> normal <em>italic</em>\n}]",
"descriptionFormat": "Wiki",
"name": "test"
}
A full example is provided at Populating a wikitext field with HTML markup through REST API on Codebeamer
Hi @Nico_M , Product Team may be aware of this requirement, please feel free to raise a topic at at https://community.ptc.com/t5/Codebeamer-Ideas/idb-p/codebeamerideas to inquire about any future implementation plans.
As for the topic, this is what I can add here:
POST /v3/trackers/{trackerId}/items
{
"description": "[{Html\n\n<b>bold</b> normal <em>italic</em>\n}]",
"descriptionFormat": "Wiki",
"name": "test"
}
A full example is provided at Populating a wikitext field with HTML markup through REST API on Codebeamer
Dear alfonso,
Thanks for your quick reply.
Unfortunately the html plugin will not help us as we need an actual conversion to take place so that the description can be editable in the codeBeamerUI later, which formatting with the plugin does not allow.
So it seems like the conversion via either custom built tool by us or you will have to be the solution. I will submit the feature request as you suggested.
Cheers,
Nico
Hello Nico, thanks for the follow-up and updates. Looking forward to helping you again in the forums!