Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Server REST API - time tracking 'Legacy' mode

luca-pittino September 25, 2018

I'm using Jira REST API to integrate the 'create issue' feature in my web-app.

Checking the specs for 'system' issue fields, I found that for worklog field there's a major difference in terms of what the /rest/api/2/issue API expects, as stated on Jira REST API examples page:

if you are using the JIRA “Legacy” time tracking mode (set by a JIRA Administrator), then only the remaining estimate can be set, so the “originalestimate” field should not be included in the REST request.

I'm aware of the API returning Jira system configuration (/rest/api/2/configuration) which does expose some time tracking-related settings, but not the time tracking mode.

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

Hello,

You can change the Legacy mode in the Server by loggin in to the Jira instance.

You can find more info here:

https://confluence.atlassian.com/adminjiraserver072/configuring-time-tracking-828788203.html

luca-pittino September 25, 2018

Thanks, but my problem is not changing the setting on Jira instance, but rather getting the setting via REST API.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

I think there is no public API for it. You can open your browser in Developer mode and have a look at what request is sent, when you change the Legacy mode. But as it is not a public Api, it can work differently on different versions.

luca-pittino September 25, 2018

Just as I thought.. thanks for the confirmation!

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

If my answer helped you, kindly mark my answer as accepted.

Suggest an answer

Log in or Sign up to answer