Skip to main content

JIRA OAuth App

Leen uses OAuth 2.0 for secure authentication with JIRA. Leen’s pre-configured OAuth app enables quick setup and handles the OAuth flow and token management automatically.

User Creation

JIRA Cloud users are managed through Atlassian Administration:
1

Atlassian Admin Hub

  1. Go to https://admin.atlassian.com
  2. Navigate to Directory > Users
  3. Click Invite users
  4. Enter the user’s email address
  5. Assign to the appropriate JIRA site
2

JIRA Site Administration (Site Admins)

  1. Go to your JIRA site (e.g., yourcompany.atlassian.net)
  2. Click Settings (gear icon) > User management
  3. Click Invite users
  4. Enter email and select access level

Required Permissions

The user authorizing the Jira connection must have the Administer Jira global permission.

Administer Jira Global Permission

This permission is required because the OAuth scopes include:
  • manage:jira-configuration - Requires “Administer Jira” global permission to manage Jira global settings
  • manage:jira-webhook - Requires “Administer Jira” global permission to manage webhooks
  • read:jira-user - Requires permission to view user profiles and group information
Important: OAuth scopes alone do not grant access. The authorizing user must have the corresponding Jira permissions. For example, if a user does not have the “Administer Jira” permission, operations won’t succeed even if the app has the required scopes.

How to Grant Administer Jira Permission

In most Jira Cloud instances, the jira-administrators or org-admins group already has the “Administer Jira” permission granted by default, so you may only need to add your user to that group.
To grant the Administer Jira permission, you need to add the org-admins group to the global permission:
  1. Go to your JIRA site
  2. Click the Settings icon (⚙️) in the top right
  3. Select System from the menu
  4. Click Global Permissions
  5. Scroll to the bottom to find the Add Permission section
  6. In the Permission dropdown, select Administer Jira
  7. In the Group field, select or enter org-admin
  8. Click Add
Then add users to the org-admins group:
  1. In Jira settings, navigate to User management > Groups
  2. Find the org-admins group
  3. Click on the group and add the authorizing user
Note: You must be an existing Jira admin or Site admin to access the Global Permissions page. Being a Site Admin at the Atlassian account level does not automatically grant Jira-specific admin permissions.

Key Points

  • The authorizing user must be in the org-admins group
  • The user selects which JIRA site to connect during authorization
Recommendation: Ensure the authorizing user is either an Organization Admin or Site Admin who has been added to the org-admins group to guarantee access to all necessary JIRA resources including webhooks and configuration data.

Required Permissions

The JIRA OAuth app requires the following scopes:

Onboarding

1

Create JIRA Connection

With your Leen API Key and your organization ID, make an API request to create a new JIRA connection. More information can be found on the API Reference page.
The response will look like this:
You can optionally filter projects and provide custom mappings:
2

Authorize JIRA Access

Open the oauth2_authorize_url from the previous step in a browser. This will prompt you to authorize Leen to access your JIRA resources.
  1. Log in to your Atlassian account
  2. Select your JIRA site from the list
  3. Review the requested permissions
  4. Click Accept to grant access Jira-authorize
Once authorized, you will be redirected to Leen with a successful connection confirmation.Jira-successful-connection

Connection Options

Project Filter

You can optionally filter which JIRA projects to sync:
Note: If not specified, all accessible projects will be synced.

Custom Priority Mapping

You can provide custom mappings from JIRA priorities to standardized ITSM priority values:
Valid ITSM Priority Values:
  • CRITICAL - Highest priority, blockers, emergencies
  • HIGH - High priority, major issues
  • MEDIUM - Medium or normal priority
  • LOW - Low priority, minor issues
  • INFORMATIONAL - Lowest priority
  • UNKNOWN - Unmapped priorities
If not provided, Leen will auto-generate mappings based on priority names and keywords.

Custom Status Mapping

You can provide custom mappings from JIRA statuses to standardized ITSM status values:
Valid ITSM Status Values:
  • OPEN - Newly opened
  • TODO - In backlog
  • IN_PROGRESS - Actively being worked on
  • IN_REVIEW - Under review
  • BLOCKED - Blocked or on hold
  • PENDING - Pending validation or testing
  • RESOLVED - Resolved, awaiting closure
  • CLOSED - Completed and closed
  • CANCELLED - Cancelled or rejected
  • UNKNOWN - Unmapped statuses
If not provided, Leen will auto-generate mappings based on status names, keywords, and JIRA status categories. The JIRA integration also supports near real-time updates for tickets using webhooks, Please refer to the setup instructions here.