Is there a way to return a task body as html in API response?


#1

I am currently querying the phab api to get the body of a task (maniphest.info) which I want to send in an email. The response comes in as the plaintext remarkup so I have to manipulate it quite a bit to get the email to look nicely formatted. Is there an api parameter I can set to get the response as HTML so I can paste it directly into the email without any manipulation?


#2

Not directly, but you can use conduit method remarkup.process to get HTML from the body.

Also, you should use maniphest.search instead of maniphest.info, which is deprecated.