Hierarchy

  • CommonHttpService
    • LongRunningTaskService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

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

    Returns LongRunningTaskService

Methods

  • Returns information about all active long-running tasks (e.g. space export), such as how long each task has been running and the percentage of each task that has completed.

    Permissions required: Permission to access the Confluence site ('Can use' global permission).

    Parameters

    • params: {
          key?: string;
          limit?: number;
          start?: number;
      } = {}
      • Optionalkey?: string

        The key of the tasks.

      • Optionallimit?: number

        The maximum number of tasks to return per page. Note, this may be restricted by fixed system limits.

      • Optionalstart?: number

        The starting index of the returned tasks.

    Returns Promise<LongTaskStatusArray>

    Returned if the requested tasks are returned.

    GET /wiki/rest/api/longtask @scopes-current read:content.metadata:confluence

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

    Returns void