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.Required Permissions
The JIRA OAuth app requires the following scopes:| Scope | Purpose |
|---|---|
read:jira-work | Read JIRA projects, issues, comments, and attachments |
write:jira-work | Write access for passthrough endpoint operations |
read:jira-user | Read user information and groups |
manage:jira-configuration | Read users within groups |
offline_access | Enable refresh tokens for long-lived access |
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:
Example POST body and response
Example POST body and response
Example with connection options
Example with connection options
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.- Log in to your Atlassian account
- Select your JIRA site from the list
- Review the requested permissions
-
Click Accept to grant access


Connection Options
Project Filter
You can optionally filter which JIRA projects to sync:Custom Priority Mapping
You can provide custom mappings from JIRA priorities to standardized ITSM priority values:CRITICAL- Highest priority, blockers, emergenciesHIGH- High priority, major issuesMEDIUM- Medium or normal priorityLOW- Low priority, minor issuesINFORMATIONAL- Lowest priorityUNKNOWN- Unmapped priorities
Custom Status Mapping
You can provide custom mappings from JIRA statuses to standardized ITSM status values:OPEN- Newly openedTODO- In backlogIN_PROGRESS- Actively being worked onIN_REVIEW- Under reviewBLOCKED- Blocked or on holdPENDING- Pending validation or testingRESOLVED- Resolved, awaiting closureCLOSED- Completed and closedCANCELLED- Cancelled or rejectedUNKNOWN- Unmapped statuses