`taskStatusId` is marked `optional` in docs but is required when creating tasks

In the docs the taskStatusId as well as typeOfWorkId are marked as optional but is required.

I’d really love if it where optional and would just use the first status instead of requiring another API call. From previous discussions this doesn’t seem to be planned so please take this just as a friendly note to adjust the docs :slight_smile:

Hi @tk1 thanks for reporting this. This has already been mentioned and we currently don’t have a good way to document this for all the different cases. Task creation endpoint. Why can't typeOfWorkId, taskStatusId and entityId not be null or completely omitted?

Hey @tk1 , we have now made the typeOfWorkId and taskStatusId optional. They will take default values if none are provided. The typeOfWorkId will be the first one created in the workspace and taskStatusId will be the first task status of type “to do”.

The entityId still is required.

2 „Gefällt mir“