How to create checkboxes in the content of a task using the API?
Hello guys,
Today we create tasks via the API with default text inside.
We've recently been asked to add checkboxes to the default text (as shown in the image above).
Our problem:
we can't find the way to do this via this page: https://developers.wrike.com/special-syntax/
Is there any way of doing this?
Thank you!
Hi Julien DUBOIS! 🙋♂️
Thank you for posting. While we wait for responses from our Community members, please feel free to reach out to our Support Team as one of our API experts will be able to assist you with your query. If you’d like, I can also raise a support ticket on your behalf. Just let me know 🙂
Rohan V Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Rohan V Wrike Team member Become a Wrike expert with Wrike Discover
Julien DUBOIS
If you tried to create a checkbox in Wrike description, and read it, you will see its HTML like this:
<ul class="checklist" style="list-style-type: none;">
<li>
<label><input type="checkbox" />111</label>
</li>
<li>
<label><input type="checkbox" />222</label>
</li>
</ul>
It corresponds to the UI like this:
You may follow the same and update the task's description with HTML tagged checkboxes.
If you want to update the description and add checkboxes at the top, then you need to first read the task's description, and concatenate the description by prepending checkbox HTML and update back the task.
Hope it helps.