(note: for some versions of Redmine you can need some other extension of path /time_entries.xml, e.g. 2.5 works with *.json http://www.redmine.org/boards/2/topics/48933?r=48934#message-48934 , sometimes in plugins it comes simply without any extension)
Time Entries¶
- Table of contents
- Time Entries
Listing time entries¶
Returns time entries.
Parameters:
offsetlimituser_idproject_idspent_on- ...
project_id filter¶
When filtering by project id, you can use either project numeric ID or its string identifier, e.g.
spent_on filter¶
When filtering by date, you can require a min / max date with a custom syntax:
Showing a time entry¶
Returns the time entry of given id.
Creating a time entry¶
Creates a time entry.
Parameters:
time_entry(required): a hash of the time entry attributes, including:issue_idorproject_id(only one is required): the issue id or project id to log time on (both are integers); note that project ids can only be found using the API (e.g. at /projects.json)spent_on: the date the time was spent (default to the current date); format is e.g.2020-12-24hours(required): the number of spent hoursactivity_id: the id of the time activity. This parameter is required unless a default activity is defined in Redmine.comments: short description for the entry (255 characters max)user_id: user id to be specified in need of posting time on behalf of another user
Response:
201 Created: time entry was created422 Unprocessable Entity: time entry was not created due to validation failures (response body contains the error messages)
Updating a time entry¶
Updates the time entry of given id.
Parameters:
time_entry(required): a hash of the time entry attributes (same as above)
Response:
204 No Content: time entry was updated422 Unprocessable Entity: time entry was not updated due to validation failures (response body contains the error messages)
Deleting a time entry¶
Deletes the time entry of given id.