Internal
Create a new instance of the service.
Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking. However, you can install other time tracking providers via apps from the Atlassian Marketplace. For more information on time tracking providers, see the documentation for the Time Tracking Provider module.
Permissions required: Administer Jira global permission.
Returned if the request is successful.
example:
[
{
"key": "Jira",
"name": "JIRA provided time tracking",
"url": "/example/config/url"
}
]
Returns the time tracking provider that is currently selected. Note that if time tracking is disabled, then a successful but empty response is returned.
Permissions required: Administer Jira global permission.
status: 200, mediaType: application/json
Returned if the request is successful and time tracking is enabled.
example:
{
"key": "Jira",
"name": "JIRA provided time tracking",
"url": "/example/config/url"
}
status: 204, mediaType: application/json
Returned if the request is successful but time tracking is disabled.
Returns the time tracking settings. This includes settings such as the time format, default time unit, and others. For more information, see Configuring time tracking.
Permissions required: Administer Jira global permission.
Returned if the request is successful.
example:
{
"defaultUnit": "hour",
"timeFormat": "pretty",
"workingDaysPerWeek": 5.5,
"workingHoursPerDay": 7.6
}
Selects a time tracking provider.
Permissions required: Administer Jira global permission.
Returned if the request is successful.
Sets the time tracking settings.
Permissions required: Administer Jira global permission.
Returned if the request is successful.
example:
{
"defaultUnit": "hour",
"timeFormat": "pretty",
"workingDaysPerWeek": 5.5,
"workingHoursPerDay": 7.6
}
Protected
Static
initialize
This resource represents time tracking and time tracking providers. Use it to get and set the time tracking provider, get and set the time tracking options, and disable time tracking.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-time-tracking