Am using the API to post issue comments, but supprised that bitbucket does not parse the html it just renders and posted like the picture below show
What is wrong?
Here is my api
content = {"content":{"raw":comment, 'html':comment}
return self._post('2.0/repositories/{0}/issues/{1}/comments/'.format(self.ticket.bitbucket.repo_full_name, self.ticket.bitbucket_issue_id),
data=self.data, params=params)
Currently, the API will only accept content.raw when posting a comment. HTML is included in the response.
Doe that mean if I sent <b>this is test</b> when I go to the bitbucket interface I should view the comment as a bold text. For my case it doesn't render as html, instead I get the comment as the original raw html.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, the API only accepts content.raw when POSTing.
However, if you are using the web interface to add comments and then GET them using the API, you can retrieve an HTML version of the comment.
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.