Jira Service Management integration
(Updated: )This guide explains how Leebry admins can connect a Jira Service Management (JSM) project to Leebry, manage the integration settings, and set up user authorization so Leebry can create JSM requests on behalf of individual users.
Prerequisites
Before setting up the integration, make sure you have:
Access to the integration settings in the Leebry admin dashboard
An Atlassian Cloud site with JSM
An Atlassian service account with access to the target JSM project and permission to create requests
An API token generated for the Atlassian service account
The service account email address and API token are used for basic authentication when Leebry connects to Jira and JSM.
The same Atlassian service account can be used for both the JSM and Confluence integrations, provided it has the required access and permissions in both products.
Create or prepare the Atlassian service account
If you already have a suitable Atlassian service account, make sure it has the required product and project access before continuing.
To create and prepare a service account:
In Atlassian Administration, open your organization.
Go to Directory > Service accounts and create a service account.
Grant the service account Jira Service Management agent access and add it to the Service Desk Team role in the JSM project where Leebry will create requests.
This gives the service account access to the service desk and allows it to create, view, and update requests.
Generate an API token.
Sign in to Atlassian using the service account.
Go to the Atlassian API token page.
Click "Create API token", enter a descriptive name such as Leebry JSM integration, and set an appropriate expiration period.
Copy the generated API token and store it securely. You'll need it when connecting JSM to Leebry.
Connect JSM to Leebry
Only Leebry admins can connect the JSM integration.
In the Leebry admin dashboard, go to Integration.
In the Jira Service Management tile, click Connect.
Enter the JSM connection details, then click Continue:
- Base URL — the base URL of your Jira Cloud site, for example,
https://your-site.atlassian.net - Email — the email address of the Atlassian service account
- API Key — the API token generated for the service account
- Base URL — the base URL of your Jira Cloud site, for example,
Select the default JSM project.
After Leebry validates the base URL and credentials, the next screen lets you select a default project. Use the search field or drop-down list to find the JSM project where Leebry should create requests, then select it as the default project.
Select the allowed request types.
Leebry displays the request types available in the selected JSM project. Select the request types that users can create through Leebry.
Click Connect.
After the integration is connected, JSM appears in the list of connected integrations.
View and manage synchronized JSM users
After the integration is connected, Leebry synchronizes user accounts from JSM. This lets admins see which users have authorized their Atlassian accounts to work with JSM through Leebry.
In the Leebry admin dashboard, go to Integration.
In the Jira Service Management tile, click More Details.
Leebry displays a list of synchronized JSM users.
Review user statuses:
Not Authorised — the default status for synchronized users who haven't authorized Leebry to act on their behalf.
Authorised — the user has completed the Atlassian authorization flow in Leebry and can create JSM requests.
Unknown User — the Jira user email doesn't match an existing Leebry user. This may include the Atlassian service account, which is used for API access rather than as an interactive Leebry user.
Users must authorize their Atlassian accounts separately in Leebry before their status changes from Not Authorised to Authorised. The service account is typically used only for API access and may remain in the Unknown User state.
Edit integration
In the Leebry admin dashboard, go to Integration.
In the Jira Service Management tile, click More Details or choose More (⋮) > Edit.
You can modify:
- The default space (JSM project) where Leebry creates requests
- The request types that users can choose when asking Leebry to create a request
Change the base URL or service account
The base URL and JSM service account can't be edited in place. To connect a different Jira site or service account:
Delete the existing JSM integration.
Create a new integration using the new base URL, service account email address, and API token.
Delete integration
In the Leebry admin dashboard, go to Integration.
In the Jira Service Management tile, choose More (⋮) > Delete.