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

    Class Request

    Index

    Constructors

    Methods

    • This method creates a customer request in a service desk.

      The JSON request must include the service desk and customer request type, as well as any fields that are required for the request type. A list of the fields required by a customer request type can be obtained using servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/field.

      The fields required for a customer request type depend on the user's permissions:

      • raiseOnBehalfOf is not available to Users who have the customer permission only.
      • requestParticipants is not available to Users who have the customer permission only or if the feature is turned off for customers.

      requestFieldValues is a map of Jira field IDs and their values. See Field input formats, for details of each field's JSON semantics and the values they can take.

      Permissions required: Permission to create requests in the specified service desk.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method creates a customer request in a service desk.

      The JSON request must include the service desk and customer request type, as well as any fields that are required for the request type. A list of the fields required by a customer request type can be obtained using servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/field.

      The fields required for a customer request type depend on the user's permissions:

      • raiseOnBehalfOf is not available to Users who have the customer permission only.
      • requestParticipants is not available to Users who have the customer permission only or if the feature is turned off for customers.

      requestFieldValues is a map of Jira field IDs and their values. See Field input formats, for details of each field's JSON semantics and the values they can take.

      Permissions required: Permission to create requests in the specified service desk.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns the attachments referenced in a comment.

      Permissions required: Permission to view the customer request.

      Response limitations: Customers can only view public comments, and retrieve their attachments, on requests where they are the reporter or a participant whereas agents can see both internal and public comments.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns the attachments referenced in a comment.

      Permissions required: Permission to view the customer request.

      Response limitations: Customers can only view public comments, and retrieve their attachments, on requests where they are the reporter or a participant whereas agents can see both internal and public comments.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns all customer requests for the user executing the query.

      The returned customer requests are ordered chronologically by the latest activity on each request. For example, the latest status transition or comment.

      Permissions required: Permission to access the specified service desk.

      Response limitations: For customers, the list returned will include request they created (or were created on their behalf) or are participating in only.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns all customer requests for the user executing the query.

      The returned customer requests are ordered chronologically by the latest activity on each request. For example, the latest status transition or comment.

      Permissions required: Permission to access the specified service desk.

      Response limitations: For customers, the list returned will include request they created (or were created on their behalf) or are participating in only.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns all comments on a customer request. No permissions error is provided if, for example, the user doesn't have access to the service desk or request, the method simply returns an empty response.

      Permissions required: Permission to view the customer request.

      Response limitations: Customers are returned public comments only.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns all comments on a customer request. No permissions error is provided if, for example, the user doesn't have access to the service desk or request, the method simply returns an empty response.

      Permissions required: Permission to view the customer request.

      Response limitations: Customers are returned public comments only.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method returns all the SLA records on a customer request. A customer request can have zero or more SLAs. Each SLA can have recordings for zero or more "completed cycles" and zero or 1 "ongoing cycle". Each cycle includes information on when it started and stopped, and whether it breached the SLA goal.

      Permissions required: Agent for the Service Desk containing the queried customer request.

      Type Parameters

      Parameters

      Returns Promise<void>

    • This method returns all the SLA records on a customer request. A customer request can have zero or more SLAs. Each SLA can have recordings for zero or more "completed cycles" and zero or 1 "ongoing cycle". Each cycle includes information on when it started and stopped, and whether it breached the SLA goal.

      Permissions required: Agent for the Service Desk containing the queried customer request.

      Type Parameters

      Parameters

      Returns Promise<T>

    • This method performs a customer transition for a given request and transition. An optional comment can be included to provide a reason for the transition.

      Permissions required: The user must be able to view the request and have the Transition Issues permission. If a comment is passed the user must have the Add Comments permission.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • This method performs a customer transition for a given request and transition. An optional comment can be included to provide a reason for the transition.

      Permissions required: The user must be able to view the request and have the Transition Issues permission. If a comment is passed the user must have the Add Comments permission.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • This method subscribes the user to receiving notifications from a customer request.

      Permissions required: Permission to view the customer request.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • This method subscribes the user to receiving notifications from a customer request.

      Permissions required: Permission to view the customer request.

      Type Parameters

      • T = void

      Parameters

      • parameters: Subscribe
      • Optionalcallback: undefined

      Returns Promise<T>

    • This method unsubscribes the user from notifications from a customer request.

      Permissions required: Permission to view the customer request.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • This method unsubscribes the user from notifications from a customer request.

      Permissions required: Permission to view the customer request.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>