Why can't general task created via Box Java SDK?
BoxTask only supports 'review' task , why can't we create general task. From Box UI it is supported.
https://github.com/box/box-java-sdk/blob/main/src/main/java/com/box/sdk/BoxTask.java
Hi @gurukashyap ,
You can create general task using API: https://github.com/box/box-java-sdk/blob/main/doc/tasks.md#add-a-task-to-a-file I can see that current documentation is a bit outdated. So here is a snippet:
boxFile.addTask(BoxTask.Action.COMPLETE, "General Task created with API", null);
The BoxTask#getAction only returns Review action but as you can see it is deprecated and you should use BoxTask#getTaskType.
I hope this answers your question.
This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Java SDK and feel free to open another PR/issue at any time.