Connect Jira with CircleCI
Integrate your CI/CD build and deployment status notifications directly into your Jira cards.
Connect your CircleCI jobs with Jira Cloud using:
-
The CircleCI for Jira app from the Atlassian Marketplace.
-
The
circleci/jiraorb from the CircleCI orbs registry.
Installation steps
Install the CircleCI for Jira app
-
Go to the Atlassian Marketplace to install the CircleCI for Jira app.
Figure 1. CircleCI for Jira app in Atlassian Marketplace -
Install the app in the appropriate Jira Cloud instance. To do this, you must be a Jira Admin.
Figure 2. Select organization
Figure 3. Review and confirm app installation -
Navigate to the configuration page by following these steps:
-
Go to the Atlassian admin page.
-
Ensure you have selected the appropriate organization (if you have more than one), and then select Products.
-
For the appropriate Jira instance, select the ellipsis (
) icon.
-
In the contextual menu, select Manage Jira apps.
Figure 4. Manage apps menu
-
-
From the Manage apps page, click on the CircleCI for Jira app under User-installed apps to expand the app details and click Configure.
Figure 5. Expand App Details -
Provide your CircleCI organization ID and allowed audiences.
Your CircleCI organization ID is only needed for the initial setup. You can find it by navigating to in the CircleCI web app.
This integration authenticates via OpenID Connect (OIDC). By default, the organization ID provided is used for audience validation, but this can be modified, or more can be added.
Figure 6. Set organization ID on the app Configure page
-
Select Submit to save your changes.
Figure 7. Set organization ID on the app Configure page -
Now copy your Web Trigger URL for use in the next section.
Figure 8. Copy the Webtrigger URL
Configure the Jira orb
The circleci/jira orb is responsible for relaying information about your build or deployment to the CircleCI Jira application.
-
Begin by saving the Web Trigger URL from the previous section as an environment variable. This could be added as a Project Environment Variable or within a Context. We recommend naming the variable
JIRA_WEBHOOK_URL. -
Next, import the Jira orb into your
.circleci/config.ymlfile and implement thejira/notifycommand at the end of your build and deployment jobs. Detailed and up-to-date configuration examples can be found on the orb page.
View build and deploy statuses in Jira
The circleci/jira orb automatically detects the Jira ticket number from the branch name or commit message. The build or deployment status is then posted to the appropriate Jira ticket. You can view build and deployment information, natively, in the right sidebar of any Jira ticket.
From this sidebar menu you can click into the build or deployment information to view the full CircleCI job details.