|
| 1 | +--- |
| 2 | +title: Integrating Copilot coding agent with Jira |
| 3 | +shortTitle: Integrate coding agent with Jira |
| 4 | +intro: 'You can use the {% data variables.product.github %} integration in Jira to provide context and open pull requests, all from within your Jira workspace.' |
| 5 | +versions: |
| 6 | + feature: copilot |
| 7 | +redirect_from: |
| 8 | + - /early-access/copilot/integrate-coding-agent-with-jira |
| 9 | +contentType: how-tos |
| 10 | +category: |
| 11 | + - Integrate Copilot with your tools |
| 12 | +--- |
| 13 | + |
| 14 | +> [!NOTE] |
| 15 | +> This feature is currently in {% data variables.release-phases.public_preview %} and subject to change. |
| 16 | +
|
| 17 | +The {% data variables.product.prodname_copilot %} integration in Jira allows you to invoke {% data variables.copilot.copilot_coding_agent %} without leaving your Jira workspace. From within a Jira work item you can initiate {% data variables.copilot.copilot_coding_agent_short %} sessions and open pull requests, using the context of the work item's title, description, labels, and comments. |
| 18 | + |
| 19 | +## Prerequisites |
| 20 | + |
| 21 | +* You must have a {% data variables.product.github %} account with access to {% data variables.product.prodname_copilot_short %} through {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, or {% data variables.copilot.copilot_enterprise_short %}. |
| 22 | +* You must have a Jira Cloud account with [AI features enabled](https://support.atlassian.com/organization-administration/docs/activate-atlassian-intelligence-for-products). |
| 23 | +* Installation and authentication must be completed for both Jira and {% data variables.product.github %}. |
| 24 | + |
| 25 | +## Installation |
| 26 | + |
| 27 | +To install the {% data variables.product.prodname_copilot %} for Jira app and authorize it for your {% data variables.product.github %} organization or enterprise account, you need: |
| 28 | + |
| 29 | +* Administrator permission for your Jira site. |
| 30 | +* Owner or {% data variables.product.github %} App manager permissions for your {% data variables.product.github %} organization. |
| 31 | + |
| 32 | +This integration relies on an Atlassian Forge application and a {% data variables.product.github %} application. Both are required for the integration. Once successfully installed, authorized users of the Jira workspace with **write** access to a {% data variables.product.github %} repository will be able to trigger the agent from Jira. |
| 33 | + |
| 34 | +### Installing the {% data variables.product.prodname_copilot %} for Jira app for {% data variables.product.prodname_dotcom_the_website %} |
| 35 | + |
| 36 | +1. Navigate to the [{% data variables.product.prodname_copilot %} for Jira installation page](https://marketplace.atlassian.com/apps/1582455624?ref_product=copilot&ref_type=engagement&ref_style=text) on the Atlassian Marketplace. |
| 37 | +1. Click **Get app**. |
| 38 | +1. Select the Atlassian instance you want to install the {% data variables.product.github %} application in. |
| 39 | +1. Click **Install**. |
| 40 | +1. If you are not automatically redirected, go to the [{% data variables.product.prodname_copilot %} for Jira installation page](https://github.com/apps/github-copilot-for-jira?ref_product=copilot&ref_type=engagement&ref_style=text) on the {% data variables.product.prodname_marketplace %} and click **Install**. |
| 41 | +1. In the **Install {% data variables.product.prodname_copilot %} for Jira** page, select the organization and repositories you would like to give the application access to. |
| 42 | + * You can add additional organizations after the app is installed, see [Adding an organization to the {% data variables.product.prodname_copilot %} for Jira app](#adding-an-organization). |
| 43 | +1. Click **Install**. |
| 44 | + |
| 45 | +### Installing the {% data variables.product.prodname_copilot %} for Jira app for {% data variables.enterprise.data_residency_site %} |
| 46 | + |
| 47 | +1. Navigate to the [{% data variables.product.prodname_copilot %} for Jira (GHEC with Data Residency) installation page](https://marketplace.atlassian.com/apps/3637796809?ref_product=copilot&ref_type=engagement&ref_style=text) on the Atlassian Marketplace. |
| 48 | +1. To the right of the app name, click {% octicon "kebab-horizontal" aria-label="Configure" %}, and enter your `SUBDOMAIN.ghe.com` in the text box. Replace SUBDOMAIN with your enterprise's subdomain of {% data variables.enterprise.data_residency_site %}. |
| 49 | +1. Click **Save configuration**. |
| 50 | +1. Click **Get app**. |
| 51 | +1. Select the Atlassian instance you want to install the {% data variables.product.github %} application in. |
| 52 | +1. Click **Install**. |
| 53 | +1. If you are not automatically redirected, find the {% data variables.product.prodname_copilot %} for Jira app in the list of apps available to your enterprise at `SUBDOMAIN.ghe.com/apps/external-app/github-copilot-for-jira`. |
| 54 | +1. Click **Install**. |
| 55 | +1. In the **Install {% data variables.product.prodname_copilot %} for Jira** page, select the organization and repositories you would like to give the application access to. |
| 56 | + * You can add additional organizations after the app is installed, see [Adding an organization to the {% data variables.product.prodname_copilot %} for Jira app](#adding-an-organization). |
| 57 | +1. Click **Install**. |
| 58 | + |
| 59 | +## Adding an organization to the {% data variables.product.prodname_copilot %} for Jira app |
| 60 | + |
| 61 | +Once the {% data variables.product.prodname_copilot %} for Jira app has been installed, a Jira administrator and {% data variables.product.github %} organization owner can enable additional organizations to use the app. This allows any member of the organization to connect their {% data variables.product.github %} account to the app and start using it in Jira. |
| 62 | + |
| 63 | +To enable the {% data variables.product.prodname_copilot %} for Jira app for an organization: |
| 64 | + |
| 65 | +1. In Jira, go to the settings page for your space. |
| 66 | +1. Go to the applications setting page for the {% data variables.product.prodname_copilot %} app. |
| 67 | +1. Optionally, click **Connect More {% data variables.product.github %} Organizations** to add new organizations to the list. |
| 68 | +1. Enable the {% data variables.product.prodname_copilot_short %} app for one or more of the listed organizations. |
| 69 | + |
| 70 | +## Using the {% data variables.product.prodname_copilot %} app in Jira |
| 71 | + |
| 72 | +The {% data variables.product.prodname_copilot_short %} app must be enabled for a {% data variables.product.github %} organization you are a member of, before you can start using it. |
| 73 | + |
| 74 | +The first time you use {% data variables.copilot.copilot_coding_agent %} in Jira, you will need to connect it to your {% data variables.product.github %} account. |
| 75 | + |
| 76 | +Only users with **write** access to a repository can trigger {% data variables.copilot.copilot_coding_agent %} to work in that repository. |
| 77 | + |
| 78 | +> [!NOTE] |
| 79 | +> When you assign {% data variables.product.prodname_copilot_short %} to a Jira work item, the context the agent captures from Jira will be added to the pull request and **visible to everyone** if the repository is public. |
| 80 | +
|
| 81 | +1. In Jira, open or create a work item that contains clear requirements you want to delegate to {% data variables.copilot.copilot_coding_agent %}. |
| 82 | +1. To specify a repository you want {% data variables.product.prodname_copilot_short %} to work in, mention it in the work item description or in a comment. |
| 83 | +1. Assign `{% data variables.product.prodname_copilot %}` to the work item, or mention `@{% data variables.product.prodname_copilot %}` in a comment. For example: |
| 84 | + |
| 85 | + ```text |
| 86 | + @{% data variables.product.prodname_copilot %} create a new API endpoint for user authentication in octo-org/octorepo |
| 87 | + ``` |
| 88 | +
|
| 89 | +1. If you have not previously connected the {% data variables.product.github %} application in Jira to your {% data variables.product.github %} account, follow the prompts to authorize the application for both {% data variables.product.github %} and Atlassian. |
| 90 | +1. Once {% data variables.copilot.copilot_coding_agent %} has started working on the pull request, a comment will appear in the Jira work item. The user who initiated the agent session can view progress updates for the agent. |
| 91 | +1. You can follow up with further instructions for {% data variables.product.prodname_copilot_short %} in a work item: |
| 92 | + * Mention `@{% data variables.product.prodname_copilot %}` in a comment. |
| 93 | + * Use the **Continue in Chat** button under the **Agents** heading to chat directly with {% data variables.product.prodname_copilot_short %}. |
| 94 | +
|
| 95 | +> [!TIP] |
| 96 | +> If you have not received confirmation of triggering {% data variables.copilot.copilot_coding_agent %} after 1 minute, refresh the Jira work item page. |
| 97 | +
|
| 98 | +## Usage costs |
| 99 | +
|
| 100 | +{% data variables.copilot.copilot_coding_agent %} uses {% data variables.product.prodname_actions %} minutes and {% data variables.product.prodname_copilot_short %} premium requests. |
| 101 | +
|
| 102 | +Within your monthly usage allowance for {% data variables.product.prodname_actions %} and premium requests, you can ask {% data variables.copilot.copilot_coding_agent %} to work on coding tasks without incurring any additional costs. |
| 103 | +
|
| 104 | +For more information, see [AUTOTITLE](/billing/concepts/product-billing/github-copilot-premium-requests#usage-by-copilot-coding-agent). |
| 105 | +
|
| 106 | +## Troubleshooting |
| 107 | +
|
| 108 | +### {% data variables.product.prodname_copilot %} is not responding |
| 109 | +
|
| 110 | +* Check {% data variables.product.github %}'s [Status page](https://githubstatus.com) for any active incidents. |
| 111 | +* Verify that {% data variables.copilot.copilot_coding_agent %} has access to the repository by testing if you can assign {% data variables.product.prodname_copilot_short %} to an issue on {% data variables.product.github %}. See [AUTOTITLE](/copilot/concepts/agents/coding-agent/access-management). |
| 112 | +* Verify that the {% data variables.product.prodname_copilot %} for Jira application has access to the repository. See [AUTOTITLE](/apps/using-github-apps/reviewing-and-modifying-installed-github-apps#modifying-repository-access). |
| 113 | +
|
| 114 | +## Further reading |
| 115 | +
|
| 116 | +* [AUTOTITLE](/copilot/concepts/coding-agent/coding-agent) |
| 117 | +* [AUTOTITLE](/copilot/concepts/coding-agent/enable-coding-agent) |
0 commit comments