issues

Retrieve time tracking stats for an issue

Retrieves time tracking stats for a specified issue, including time estimate and time spent in seconds and human-readable format (for example, 1h 30m).

get/api/v4/projects/{id}/issues/{issue_iid}/time_stats

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

issue_iidinteger required

The internal ID of the issue

Response

Retrieve time tracking stats for an issue

time_estimateinteger required
total_time_spentinteger required
human_time_estimatestring required
human_total_time_spentstring required

Example response

{
  "time_estimate": 12600,
  "total_time_spent": 3600,
  "human_time_estimate": "3h 30m",
  "human_total_time_spent": "1h"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.