Set time spent with REST API
Hi all,
How can i set fields like estimation and time spent using the rest api? Did not find in doc how to do this and command seems also not to refer this.
Thanks in advance
Br,
Jorge Costa
How can i set fields like estimation and time spent using the rest api? Did not find in doc how to do this and command seems also not to refer this.
Thanks in advance
Br,
Jorge Costa
Please sign in to leave a comment.
1. You can set values for "Estimation" field apply a command to an issue:
POST /rest/issue/{issue_id}/execute?command=Estimation 1w2d3h
Here is documentation:
http://confluence.jetbrains.net/display/YTD4/Apply+Command+to+an+Issue
2. You can't change values for "Spent time" field manually.
It is calculated automatically. This field is a sum of the all work items.
3. REST API for Time Tracking will be available since YouTrack 4.2
After that you will be able to add work items via REST API
Here is request: http://youtrack.jetbrains.com/issue/JT-17477
Regards,
--
Mikhail
Where period is the field mikhail described.
The spenttime will be updated accoringly
Hope that helps
thanks for the tip. I will try that.
BR,
Jorge Costa