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.

Hierarchy

  • CommonHttpService
    • TimeTrackingService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns TimeTrackingService

Methods

  • 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.

    Returns Promise<WithResponse<{
        body: TimeTrackingProvider;
        mediaType: "application/json";
        status: 200;
    } | {
        body: void;
        mediaType: "application/json";
        status: 204;
    }>>

    • 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.

    GET /rest/api/3/configuration/timetracking @scopes-current manage:jira-configuration @scopes-beta read:issue.time-tracking:jira

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void