Line break in notes via API

Christian Jäck
Christian Jäck DE Pro Posts: 11 Beginner

Hello everyone,

to all developers: I am trying in vain to get a line break in the body parameter “notes” via the Meister API when creating a new task with “https://www.meistertask.com/api/sections/{section_id}/tasks”. No matter what I pass in the string, it does not give me a line break.
What I have tried:
\n
\r\n
\u2028
\n\n

Unfortunately, none of this is displayed as a line break.
Maybe someone has already had this problem and found a solution?

In the return when reading a task, I have seen that there is the field “notes_html”. Unfortunately, it does not accept this field as input. That would have been the easiest solution.

Regards
Christian

Translated with DeepL.com (free version)

Tagged:

Comments

  • Christian Jäck
    Christian Jäck DE Pro Posts: 11 Beginner

    Finally it worked for me in my JS code. Only the https://developers.meistertask.com/reference/post-task doesn't work.