API: Unordered list with nesting corrupts expected text format

When passing an unordered list via the API, using asana’s formatting tags, Asana corrupts the formatting.

Steps to reproduce:
PUT to {{baseUrl}}/tasks/:task_gid?
{
“data”: {
“html_notes”: “

  • Item 1
  • Item 2
    • Sub item 1
  • Item 3

}
}
Result:
  • Item 1
  • Item 2Sub item 1
  • Item 3

Note: If I format a nested list directly in asana, then GET the result via the API, and evaluate the html (e.g.: validator.w3.org), I get the following error:
Asana html:

  • Item 1
  • Item 2
    • Sub item 1
  • Item 3

Validation error:
Element [ ul ]not allowed as child of element [ ul ] in this context

This makes it pretty difficult to use the API effectively . My use case is sending updates from jira to asana tasks. It would be much easier if asana would follow a standard document markup.

Browser version:

Upload screenshots below:

Hi @Alex_Breen and welcome to the forum!

You definitely did nothing wrong in posting this to the “Bugs” part of the forum.

However, because it’s API-related, I’m going to move it to the Developers & API section of the forum where it can get better addressed by the API team and/or other third-party developers who may have experience with this.

Hi @Alex_Breen—thanks for reporting this bug! I’ve made a task to track it internally and we’ll try to address it soon.