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.
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
Thanks, but my problem is not changing the setting on Jira instance, but rather getting the setting via REST API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If my answer helped you, kindly mark my answer as accepted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.