Jira Service Desk Routines

Jira Service Desk Routines

Looking for the documentation on the newest versions of Power Scripts for Jira 8 for Server/Data Center? Click here !

This section contains routines that enable users to handle comments and getting the URL for a specific ticket opened in Jira Service Desk.

In Power Scripts™ for Jira 4.0 (server) you can find new routines focused on your Jira Service Desk tasks like adding a comment, checking if a comment is public or private, and so on.

Routines summary

  • addCustomer — Adds an existing customer or a list of customers to a specified Service Desk project.
  • addCustomerToOrganization — Adds an existing customer or a list of customers to a specified organization.
  • addJSDComment — Posts a comment on the specified issue on behalf of the specified user. Returns a number representing the id of the comment.
  • addOrganization — Adds an existing organization or a list of organizations to a specified Service Desk project.
  • createCustomer — Creates a Service Desk customer. The newly created customer is not added to any JSD project, however he/she can raise request against unrestricted JSD projects.
  • createOrganization — Creates a new customer organization.
  • deleteOrganization — Removes a customer organization.
  • getAllOrganizationIds — Returns the Ids of all Service Desk organizations.
  • getAllServiceDeskProjects — Returns a list of all projects that are Jira Service Desk type projects.
  • getJSDCommentPrivacy — Returns the privacy of comment entered on a transition screen. If the comment is internal, it will return "internal" and "external" otherwise.
  • getJSDUrl — This routine returns the url to a specific customer portal for an issue.
  • getOrganizationNameById — Gets the Jira Service Desk organization by the Id.
  • getPortalForProject — Retrieves a portal ID by searching for the projectKey. The routine will return a null if the portal is not found.
  • getRequestChannel — Gets the request channel type for a specified issue key.
  • getRequestsTypes — Returns an array of JRequestType containing all the Request Type data for a Portal.
  • getSlaInformation — Gets SLA information for the specified issue.
  • getUsersFromOrganizations — Gets users from a specified organization or list of organizations.
  • inviteCustomer — Sends an invitation to a customer or a list of customers for a specified Service Desk project.
  • isPublicJSDComment — This routine returns the type of comment, if the comment is public, the routine will return "true" otherwise it will return "false".
  • organizationExist — Verifies whether a given organization is a registered JSD organization.
  • removeCustomer — Removes a customer or a list of customers from a specified project.
  • removeCustomerFromOrganization — Removes a customer or a list of customers from a specified organization.
  • removeOrganization — Removes an organization or a list of organizations from a specified project.