Agents can search Jira issues with JQL, create and update them, comment, and move them through workflows. Connect in one click with OAuth, no API key to manage.
OneCLI connects AI agents to Jira Cloud. Agents can search issues with JQL, read and create them, comment, and move them through a workflow. The gateway injects the token into requests to api.atlassian.com, so your agent never sees it.Connecting takes one click. You don’t create an Atlassian app or copy any keys.
Grant the connection to each agent that needs it, and choose per tool what runs freely, what needs approval, and what’s blocked. For example, let an agent search and read freely, but put Transition issue and Delete issue behind approval. Organization rules add guardrails on top. A blocked request never reaches Jira.To disconnect, remove the connection in Connections > Jira, then revoke OneCLI in Atlassian under Account settings > Connected apps.
Skip this section on OneCLI Cloud. It’s only for self-hosted OneCLI without ATLASSIAN_CLIENT_ID and ATLASSIAN_CLIENT_SECRET set, or if you want your own company name on Atlassian’s consent screen. One Atlassian app can serve both Jira and Confluence.
1. Create the Atlassian app
Go to developer.atlassian.com/console/myapps. Select Create > OAuth 2.0 integration, name it OneCLI, accept the terms, and select Create. For Access type, choose Resource-level, so the token only reaches the site you pick.
2. Add the permissions
Open Permissions. For each API, click Add, then Configure:
API
Scopes
Jira API
read:jira-work, write:jira-work, read:jira-user
User identity API
read:me
Use these exact classic scope names. The granular ones (read:issue:jira and so on) don’t match what OneCLI requests. For Confluence, also add the scopes on the Confluence page.
Permissions after adding all four scopes.
3. Add the callback URL
In OneCLI, open Connections > Jira > Custom credentials and copy the Redirect URI. In the developer console, open Authorization, click Configure next to OAuth 2.0 (3LO), paste it into Callback URLs, and save.
4. Connect with your app
In the developer console, open Settings and copy the Client ID and Secret under Authentication details.
Client ID and Secret on the Settings page.
Paste both into Connections > Jira > Custom credentials, select Save & Connect, and accept in Atlassian.