Time in Status REST API Reference

Data Center This page documents Time in status, Timer, Stopwatch and Calendar fields for Jira Data Center and Server. On Jira Cloud? See Time in Status (Forge) for Jira Cloud.

Rest api available here

Two endpoints have pages of their own because integrations reach for them most often: migration/fieldContexts for an inventory of where the fields are used, and fastExportReport for pulling report data into a BI tool.

As of 6.4 every request to /rest/jibrok/timeinstatus/* that is not a GET needs an XSRF token, five settingsForAll* endpoints answer POST instead of GET, and manual timer and stopwatch control takes a JSON body. Read REST API - XSRF and the X-Atlassian-Token header before you upgrade an integration.


Changes in 6.6

The endpoints below are new or changed in 6.6 and are not in the generated reference yet. Base URL: {baseUrl}/rest/jibrok/timeinstatus/1.0. Every call that is not a GET needs the XSRF token.

Timer goals with a deadline field

The goal object that the timer configuration endpoints accept and return - for creating and for updating a goal - has a new field dateFieldId:

Value Meaning
duedate The deadline is the issue’s Due date.
customfield_NNNNN The deadline is the value of a Date Picker or Date Time Picker custom field.
absent or empty An ordinary goal with a time string.

A field that is not a date field, or a field that does not exist, is rejected with 400 and a message that names the problem. How the deadline is counted: Deadline from a date field.

Time between statuses - field settings

Method Path  
GET /simpleFieldConfig/timeBetweenStatuses/{fieldConfigId} Read the start statuses, end statuses, calendar and unit of a field context.
PUT /simpleFieldConfig/timeBetweenStatuses/{fieldConfigId} Save them. Needs the XSRF token.

Both calls are for Jira administrators only. See Time between statuses field.

Recalculation by history in the background

The recalculation endpoints of Restore by history take a background flag:

POST /timer/calculateByHistory/{recalculate|recalculateErrors|findErrors}
POST /stopwatch/calculateByHistory/{recalculate|recalculateErrors|findErrors}
  • With "background": true added to the request the call already takes, the call returns at once with 202 and {"jobId": "..."}; the work runs as a background job.
  • Without background the endpoints work synchronously, as before.

The job is followed and stopped with:

Method Path  
GET /timer/calculateByHistory/jobs/{id} Status and progress of one job: processed, total, recalculated, errors, the first errors.
GET /timer/calculateByHistory/jobs/current The job that is running now, if any.
POST /timer/calculateByHistory/jobs/{id}/cancel Stop the job between two issues. Needs the XSRF token.

The same paths exist under /stopwatch/calculateByHistory/. Only one such job runs on the instance at a time: a second start is refused, and the refusal carries the id of the running job.

The values are set without re-indexing each issue: run one full re-index (System → Indexing) when the job has finished, so that search and JQL see them.


JiBrok time in status Time in status | SLA | Timer | Stopwatch
Migration
Release notes
Tutorials
Settings
Troubleshooting
Work calendars
Time in status
Timers and Stopwatches
Stopwatch
Timer
Additional functions
Issue panels
Reports
Field Helpers
Other fields
API
Reference information