Jira.js - Jira Cloud API library
    Preparing search index...

    Class ServiceDesk

    Index

    Constructors

    Methods

    • Adds one or more customers to a service desk. If any of the passed customers are associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

      Permissions required: Service desk administrator

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • Adds one or more customers to a service desk. If any of the passed customers are associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

      Permissions required: Service desk administrator

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • This method enables a customer request type to be added to a service desk based on an issue type. Note that not all customer request type fields can be specified in the request and these fields are given the following default values:

      • Request type icon is given the headset icon.
      • Request type groups is left empty, which means this customer request type will not be visible on the customer portal.
      • Request type status mapping is left empty, so the request type has no custom status mapping but inherits the status map from the issue type upon which it is based.
      • Request type field mapping is set to show the required fields as specified by the issue type used to create the customer request type.

      These fields can be updated by a service desk administrator using the Request types option in Project settings.
      Request Types are created in next-gen projects by creating Issue Types. Please use the Jira Cloud Platform Create issue type endpoint instead.

      Permissions required: Service desk's administrator

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method enables a customer request type to be added to a service desk based on an issue type. Note that not all customer request type fields can be specified in the request and these fields are given the following default values:

      • Request type icon is given the headset icon.
      • Request type groups is left empty, which means this customer request type will not be visible on the customer portal.
      • Request type status mapping is left empty, so the request type has no custom status mapping but inherits the status map from the issue type upon which it is based.
      • Request type field mapping is set to show the required fields as specified by the issue type used to create the customer request type.

      These fields can be updated by a service desk administrator using the Request types option in Project settings.
      Request Types are created in next-gen projects by creating Issue Types. Please use the Jira Cloud Platform Create issue type endpoint instead.

      Permissions required: Service desk's administrator

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method deletes a customer request type from a service desk, and removes it from all customer requests.
      This only supports classic projects.

      Permissions required: Service desk administrator.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • This method deletes a customer request type from a service desk, and removes it from all customer requests.
      This only supports classic projects.

      Permissions required: Service desk administrator.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • This method returns a list of the customers on a service desk.

      The returned list of customers can be filtered using the query parameter. The parameter is matched against customers' displayName, name, or email. For example, searching for "John", "Jo", "Smi", or "Smith" will match a user with display name "John Smith".

      Permissions required: Permission to view this Service Desk's customers.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns a list of the customers on a service desk.

      The returned list of customers can be filtered using the query parameter. The parameter is matched against customers' displayName, name, or email. For example, searching for "John", "Jo", "Smi", or "Smith" will match a user with display name "John Smith".

      Permissions required: Permission to view this Service Desk's customers.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns the customer requests in a queue. Only fields that the queue is configured to show are returned. For example, if a queue is configured to show description and due date, then only those two fields are returned for each customer request in the queue.

      Permissions required: Service desk's agent.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns the customer requests in a queue. Only fields that the queue is configured to show are returned. For example, if a queue is configured to show description and due date, then only those two fields are returned for each customer request in the queue.

      Permissions required: Service desk's agent.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns a specific queues in a service desk. To include a customer request count for the queue (in the issueCount field) in the response, set the query parameter includeCount to true (its default is false).

      Permissions required: service desk's Agent.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns a specific queues in a service desk. To include a customer request count for the queue (in the issueCount field) in the response, set the query parameter includeCount to true (its default is false).

      Permissions required: service desk's Agent.

      Type Parameters

      Parameters

      • parameters: GetQueue
      • Optionalcallback: undefined

      Returns Promise<T>

    • This method returns the queues in a service desk. To include a customer request count for each queue (in the issueCount field) in the response, set the query parameter includeCount to true (its default is false).

      Permissions required: service desk's Agent.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns the queues in a service desk. To include a customer request count for each queue (in the issueCount field) in the response, set the query parameter includeCount to true (its default is false).

      Permissions required: service desk's Agent.

      Type Parameters

      Parameters

      • parameters: GetQueues
      • Optionalcallback: undefined

      Returns Promise<T>

    • This method returns the fields for a service desk's customer request type.

      Also, the following information about the user's permissions for the request type is returned:

      • canRaiseOnBehalfOf returns true if the user has permission to raise customer requests on behalf of other customers. Otherwise, returns false.
      • canAddRequestParticipants returns true if the user can add customer request participants. Otherwise, returns false.

      Permissions required: Permission to view the Service Desk. However, hidden fields would be visible to only Service desk's Administrator.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns the fields for a service desk's customer request type.

      Also, the following information about the user's permissions for the request type is returned:

      • canRaiseOnBehalfOf returns true if the user has permission to raise customer requests on behalf of other customers. Otherwise, returns false.
      • canAddRequestParticipants returns true if the user can add customer request participants. Otherwise, returns false.

      Permissions required: Permission to view the Service Desk. However, hidden fields would be visible to only Service desk's Administrator.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns all customer request types from a service desk. There are two parameters for filtering the returned list:

      • groupId which filters the results to items in the customer request type group.
      • searchQuery which is matched against request types' name or description. For example, the strings "Install", "Inst", "Equi", or "Equipment" will match a request type with the name "Equipment Installation Request".

      Permissions required: Permission to access the service desk.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns all customer request types from a service desk. There are two parameters for filtering the returned list:

      • groupId which filters the results to items in the customer request type group.
      • searchQuery which is matched against request types' name or description. For example, the strings "Install", "Inst", "Equi", or "Equipment" will match a request type with the name "Equipment Installation Request".

      Permissions required: Permission to access the service desk.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method removes one or more customers from a service desk. The service desk must have closed access. If any of the passed customers are not associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

      Permissions required: Services desk administrator

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • This method removes one or more customers from a service desk. The service desk must have closed access. If any of the passed customers are not associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

      Permissions required: Services desk administrator

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>