Could someone help me on this . I’m trying to import Jira XML file to Asana.
I wanted to use bold font for the imported title, and Asana Developer Rich Text rule suggested me to use tag, and I did like this:
if (titleTags.includes(key)) {
// Bold the title
key = `<strong>[${key.toUpperCase()}]</strong>`;
contentSections[key] = value;
} else if (key === 'customfields') {
However, the imported text showed tag text directly instead of bold text
It looks like you are trying to add rich text to a task description. To do that you’ll want to send the rich text request in the html_notes property of your request body.
Here’s a sample request of updating a task description to include rich text in cURL:
Let’s say you want to make your text look a certain way and do not know which tags to use in your rich text. You can play around with the styling the text in Asana and then make a GET request to see what tags was used and copy that style in your POST or PUT /tasks request.
Edit the description in Asana with the style that you want (EX: bold a text)
Make a request to get that task (Get a task) and specify that you want the html_notes property back in the response by specifying it in the opt_fields query param.