Integrating with Jira - Authorizing Access for iCR
To be able to create new Jira issues from the results of an iCR analysis, the iCR service requires authorization from the developers to be able to access the project(s) that was (were) created for use with iCR.
This chapter outlines the steps needed to authorize access to your Jira project from iCR.
In order to create and configure an OAuth app for iCR, you must use the Atalssian Developer Console. Assuming that you have already created a new Jira project, we assume that you remain logged into the Atlassian platform. From the Home page, here is how to reach the Developers' Console:
From that Home page, click on the
For teams
from the top menu to reveal the optionsFrom the options, look to the column on the right to see the
Developers
option and select itThat brings you to the Developer Dashboard where you can click on the
Resources
menu at the topFrom that set of options, look to the right column again where you can click on
Developer console
to reach the place where you can authorize a new OAuth app
These steps are illustrated in the video below:
Once at the Developers' console you will see a display of all apps that you have connected to Jira including any other OAuth apps that you previously configured.
We will authorize iCR here. To accomplish that, execute these steps. You can see them used in the video following this description.
To add a new app to authorize iCR, begin by clicking on the
Create
menu pulldown at the top right of the displayThat reveals 2 options for adding apps. Choose the option labeled
OAuth 2.0 integration
That will bring up the OAuth creation window. Here you name your app. We will also name this
iCR-Bug-Tracking
for consistency. This app name does not need to be the same as for the Jira project but we named them the same here to make it easier to see the associationsNote that Atlassian requires you to be familar with their Developer terms before continuing. Assuming that you are OK with their terms, click the box to be able to continue
After agreeing to the terms, click
Create
to instantiate a new OAuth app on behalf of iCR
That will bring you to the window where you can customize the properties that you need to have to allow iCR to interact securely with Jira. You will need to set some API permissions, authorize the iCR URL to permit access to Jira, and some settings to provide you with the security strings that you will need later for mating iCR with Jira. These are the steps to configure your OAuth app:
We will set the permisisons first. From the menu at the left of the page, click on
Permissions
to take you to the page where we configure the specific API Permissions that iCR requiresWe will need the
User identitity API
. Click onAdd
to enable that. The default configuration for that is fine so we do not need to go further with this APIWe also need the
Jira API
. Again, click theAdd
button which becomes aConfigure
button. Click on that to specifiy the exact Jira APIs that iCR needs to have enabledThis brings up an extended list of API sets. Since we need to customize this, we click on the
Edit Scopes
button at the right of that page to allow us to select the 5 API sets that we will be using with iCRClick the boxes for the 5 API sets we use:
View Jira issue data
Manage project settings
Manage Jira global settings
View user profiles
Create and manage issues
Once they are all selected, click on
Save
to record these choicesThat completes the permissions configuration. Next is to set up the authorization information. Referring back to the menu on the left of the page, click on
Authorization
That brings you to the Authorization page where you click on
Add
to configure the URL to iCRIn the box labeled
Callback URL
enter the URL of the iCR server for which you want to allow access to Jira. Since Jira requires a secure channel between iCR and itself, the URL begins withhttps://
, followed by the IP address of the server, followed by the port:3001
, followed by the string/login/jira/return
. Using the example in the video, a sample URL would look likehttps://23.239.4.6:3001/login/jira/return
Once entered, click on
Save changes
to capture itThe final step to configure the OAuth app is to select
Settings
from the menu on the leftIn
Settings
, the name of the OAuth app is set already and you can add a description of why this OAuth app was configuredFinally, click on
Save changes
to complete the processIt is very important to note that at the bottom of the Settings page is a box labelled
Authentication details
. There are two values here:A
Client ID
which uniquely identifies the User who authorized this app; andA
Secret
string that is used to secure the communication between iCR and Jira
Both the
Client ID
andSecret
will need to be confgured in iCR to associate iCR with this Jira app. That is described in Integrating with Jira - Connecting with iCR. You may copy them now and save them away for later or you can always return here to copy them again.
All of the above steps can be viewed in the following video:
Last updated