How to Create an JIRA App to be compatible with OAuth2 #879
Unanswered
christianarty
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For the
jira-cli
to use the Cloud OAuth solution, you must create a JIRA App, with the appropriate scopes and matching callback url for it to work properly.Steps
Creating a JIRA OAuth 2.0 App
OAuth 2.0 Integration
appEnabling OAuth 2.0 for your app
Authorization
, should land on this page below:Add
for theOAuth 2.0 (3LO)
Authorization type, it should then prompt you for a callback url:The default callback url for this in the
jira-cli
ishttp://localhost:9876/callback
. You should use this but if you want the server to run at a different url, feel free to change it but make sure the change is reflected when you runjira init
Save Changes
Adding the proper scopes to your app
Permissions
tab on the side panel, should end up here:The minimum required scopes to enable are these:
All of these exist on the
JIRA API
scope.Add
for theJIRA API
scope and then configure to add the scopes.Edit Scopes
and add the scopes detailed above and saveNote
The
read:board-scope:jira-software
andread:project:jira
scopes are a granular scopes, so you need to go to another tab to enable it.Your JIRA App should be ready. The only thing to note down is the
Client ID
andClient Secret
. These values are unique to your app.Get your Client ID and Secret
Settings
tab on the left paneljira-cli
asks for these values when you runjira init
Beta Was this translation helpful? Give feedback.
All reactions