Workfront (Attask) API: Is there a way to clear/reset 'commitDate' on a task?

半城伤御伤魂 提交于 2019-12-02 16:37:55

问题


Pretty much exactly the title, I'm wondering if there is a way to clear/reset the commitDate field of a task. For example, I'm trying the following request to the API. I get no errors, but when I query the task again it shows no changes to the commitDate field.

https://thecompany.my.workfront.com/attask/api/v7.0/task/1234567890?method=put&updates={"taskConstraint": "MSO", "commitDate":"","constraintDate":"2017-08-07"}&fields=commitDate,plannedCompletionDate,actualCompletionDate,constraintDate&sessionID=12345

I've also tried all other variations of this request that I could think of, including using null as the commitDate value, but they all return the same results. No error. No change to commitDate field.

The only thing I can think of is that possibly there is something the actual task is missing. The task I'm testing on is a dummy task, so maybe I missed something while creating it, but it does have a commitDate, so I'm not sure what else I'd be missing.


回答1:


commitDate is set when an assignment is accepted and is based upon the accepting user's workload at the time of acceptance. You may update the commitment date to another value but you cannot have an empty commit date unless the task is actually complete.




回答2:


It appears that the commitDate can only be cleared when there is an actualCompletionDate assigned to the task. Once the task had an actualCompletionDate assigned I was able to reset the commitDate. I'm not sure why that is required, but it works.



来源:https://stackoverflow.com/questions/45567237/workfront-attask-api-is-there-a-way-to-clear-reset-commitdate-on-a-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!