Unify Integrations
Logo
Jira Service Management

Jira Service Management

Logo

4 mins READ

Jira Service Management is Atlassian's IT service management product, where teams receive, track and resolve customer requests and incidents through service desks. The UnifyApps Jira Service Management connector uses the Jira Service Management REST API to create and read customer requests, add comments, read attachments and approvals, move requests through transitions, and manage customers and organizations from workflows and agents.

This guide covers every authentication type available on the connection form, and the actions supported, along with the Jira Service Management scope each one needs.

Authentication

Before you begin, you should have the following information:

  • Connection name: a descriptive name such as MyAppJiraServiceManagementIntegration, so the connection is easy to identify later.

  • Authentication type: select the type of authentication for connecting to your Jira Service Management site: OAuth Basic

Every authentication type has these fields:

  • Host name (required): the domain part of your Jira URL, everything between https:// and the first /. For a Cloud site it ends with .atlassian.net, for example acme-company.atlassian.net; for Data Center or Server use your Jira host, for example jira.acme-corp.com.

  • Connection type: Cloud (the default) for a site that ends with .atlassian.net, or Data Center / Server for a self-hosted Jira.

1. OAuth

Use this when the connection should act as a Jira user who signs in and approves access, through an OAuth app that your organization creates. The form asks for that app's Client ID and Client secret.

Step 1: Create an OAuth 2.0 app in Atlassian (Cloud)

  1. Go to developer.atlassian.com, sign in, click your profile icon in the top-right corner and select Developer console.

  2. Click Create and select OAuth 2.0 integration. Enter a name for the app and click Create.

  3. In the left menu, click Authorization, then click Configure next to OAuth 2.0 (3LO).

  4. Paste the Callback URL shown on the UnifyApps connection form (it is copyable and differs per environment) and click Save changes.

  5. In the left menu, click Permissions. Next to the Jira Service Management API, click Add, then Configure and add the scopes the connection will use (see the Scopes Required column below).

  6. In the left menu, click Settings and copy the Client ID and Secret.

Atlassian Developer console Settings page with the app's Client ID and Secret, values hidden
Atlassian Developer console Settings page with the app's Client ID and Secret, values hidden

Note: new OAuth 2.0 apps are private, so only the app's owner can authorize them. If other users will create connections with this app, turn on sharing under Distribution in the developer console.

  1. In Jira, go to Administration → Applications → Application links and click Create link.

  2. Select External application and choose Incoming as the direction.

  3. Paste the Callback URL from the UnifyApps connection form as the Redirect URL.

  4. Under application permissions, select the scopes the connection needs (READ, WRITE, ADMIN or SYSTEM_ADMIN; each one includes those before it), and save.

  5. Copy the Client ID and Client secret that Jira generates. You can view them again later from the link's More actions → View credentials.

Step 2: Connection setup in UnifyApps

  1. Open Connections → New Connection → Jira Service Management and enter a Connection name.

  2. Select OAuth as the Authentication type.

  3. Enter the Host name and select the Connection type.

  4. Enter the Client ID and Client secret from Step 1.

  5. Select the Scopes you added to the app. For Cloud, include offline_access so the connection can refresh its access token without signing in again. For Data Center / Server, the options are READ, WRITE, ADMIN and SYSTEM_ADMIN; if none are selected, READ and WRITE are requested.

  6. Click Authorize, sign in to Atlassian with the account the connection should use, and click Accept on the consent screen.

  7. You are redirected back to UnifyApps with a confirmation that the account is connected.

2. Basic

Use this to connect with an Atlassian account's email and an API token, without creating an OAuth app. Actions run with that account's Jira Service Management permissions.

Step 1: Create an API token in Atlassian

  1. Go to id.atlassian.com/manage-profile/security/api-tokens and log in with the account the connection should use.

  2. Click Create API token, enter a descriptive name, choose an expiration date (1 to 365 days) and click Create.

  3. Click Copy to clipboard and store the token securely. You cannot see it again after you close the dialog.

Step 2: Connection setup in UnifyApps

  1. Open Connections → New Connection → Jira Service Management and enter a Connection name.

  2. Select Basic as the Authentication type.

  3. Enter the Host name and select the Connection type.

  4. Enter the account's Email and paste the API token.

  5. Click Test Connection to validate the details, then click Create.

Actions

Scopes are the Jira Service Management classic scopes for Cloud OAuth connections; Atlassian recommends classic scopes over granular ones. With Basic authentication, the account's own permissions in the service desk apply instead. On Data Center / Server, actions that only read need READ, and actions that create or change something need WRITE.

Actions

Description

Scopes Required

Attach temporary file

Attaches a temporary file to a service desk.

write:servicedesk-request

Create customer

Creates a customer.

manage:servicedesk-customer

Create customer request

Creates a customer request.

write:servicedesk-request

Create organization

Creates an organization with the given name.

manage:servicedesk-customer

Create request comment

Adds a comment to a customer request.

write:servicedesk-request

Get approval by ID

Gets all approvals for a customer request.

read:servicedesk-request

Get attachment content

Gets the content of an attachment on a customer request.

read:servicedesk-request

Get attachments for request

Gets the attachments of a customer request.

read:servicedesk-request

Get comment attachments

Gets the attachments of a comment on a customer request.

read:request.attachment:jira-service-management, read:request.comment:jira-service-management and read:user:jira

Get customer request by id or key

Gets a customer request by its ID or key.

read:servicedesk-request

Get customer requests

Gets customer requests.

read:servicedesk-request

Get customer transitions

Gets the transitions a customer can perform on a request.

read:servicedesk-request

Get info

Gets instance details, including the version and build.

None

Get organization

Gets an organization by its ID.

manage:servicedesk-customer

Get organizations

Lists organizations.

manage:servicedesk-customer

Get properties keys

Lists the property keys of an organization.

manage:servicedesk-customer

Get request comments

Gets the comments on a customer request.

read:servicedesk-request

Get request type fields

Gets the fields of a request type in a service desk.

read:servicedesk-request

Get users in organization

Lists all users in an organization.

manage:servicedesk-customer

Perform customer transition

Moves a customer request through a transition, as a customer.

write:servicedesk-request