Before you begin
- Manage Organization Integrations in Agent Golf. The organization Administrator role has it. See Organization roles.
- A Jira Cloud site. Agent Golf does not connect Jira Data Center or Jira Server.
- An Atlassian account that can browse every space that your teams use. Agent Golf reads Jira with the access of this account. See The access that Agent Golf asks for.
- A connected GitHub organization. Agent Golf links only the pull requests that it receives from GitHub.
Connect your Jira site
- Open Settings, choose Organization at the top of the navigation, then select Integrations > Jira.
- Read Access That Agent Golf Asks For, then select Connect Jira. Atlassian opens.
- In Atlassian, choose the Jira site, and accept the access. Atlassian returns you to Agent Golf, and the page shows “Connecting Jira…”.
- Choose What to Import opens. Continue with Choose the import.
Choose a Jira site
When your Atlassian account gave Agent Golf access to more than one Jira site, Agent Golf shows Choose a Jira Site. Agent Golf never chooses a site for you.- Select the site that Agent Golf reads.
- Select Continue. Atlassian asks you to confirm the access for that site once more.
The access that Agent Golf asks for
Agent Golf connects as an Atlassian OAuth 2.0 app. The app asks for three scopes:read:jira-work: read the spaces, the work items, and the versions.manage:jira-webhook: register the webhook that tells Agent Golf about changes.offline_access: keep the access after you close the browser.
What Agent Golf keeps
Agent Golf keeps only the Jira data that the roadmap needs, in its cloud. Jira data goes to Agent Golf directly, not through Uplink.- The connection: the Jira site ID, name, and address, the scopes that Atlassian gave, the Agent Golf user who connected Jira, and the import choice.
- Access tokens: the access token and the refresh token of the Agent Golf app, encrypted. A disconnect deletes them.
- Spaces: the ID, key, and name of each space that the connecting account can browse, and whether the space is private.
- Imported items: for the initiatives, epics, work items, and versions of the imported spaces: the ID, key, title, URL, space, status, resolution date, due date or release date, the priority of an epic, the parent and the fix versions, the creation and last change times of work items, and the time Agent Golf read each version.
- Pull-request links: the links between your pull requests and the imported work items, and the keys in pull requests that Jira did not return.
- Follow lists: the initiatives and epics that each user follows in each workspace.
- Sync state: the ID and the expiry of the webhook of the Agent Golf app, and the progress of the import.
Connect errors
When a connect does not finish, Agent Golf shows Jira Is Not Connected with one of these messages. Select Back to Integrations to connect again.
If Connect Jira shows “Agent Golf could not start the Jira connect. Try again.”, the connect did not open. Try again.
Choose the import
Agent Golf imports nothing from a new connection until you choose the spaces and the work. In Choose What to Import:- Under 1. Spaces, choose All Spaces or Specific Spaces. For Specific Spaces, select the spaces. Select Next.
- Under 2. Work, choose Active Work or All Work, with History.
- Select Start Import.
Both choices import the versions of the imported spaces. A work item of a space that you do not import always stays out. With Active Work, a work item under an epic of a space that you do not import also stays out, unless a pull request names it. With All Work, with History, that work item imports with no epic.
If the dialog shows Jira gave Agent Golf no space, the connecting account can browse no space. Give the account access to the spaces in Jira, or reconnect with another account.
To choose later, select Not Now. The Jira page then shows “Agent Golf imports nothing from Jira until you choose what to import.” and Choose Import.
You can change the work choice later in Import on the Jira page. Agent Golf imports again with the new choice, and the imported items stay.
The first import
After you choose, Agent Golf imports the initiatives and the epics first. The Jira page shows “Importing initiatives and epics from Jira”. Then it imports the work items of each epic, the epics in progress first. The Jira page shows “Importing from Jira: N of M epics”. Jira limits the requests of each app in each hour. When Agent Golf must wait for this limit, the Sync line says “Waiting for the Jira rate limit” with the time when the import continues.The connection card
After you connect, the Jira page shows the connection with its state and these facts:Spaces
The Spaces card below the connection card chooses the Jira spaces that Agent Golf imports. Each workspace of the organization sees every imported space’s data, including a workspace that you create later.- Choose All Spaces to import every space that the connecting account can browse, including spaces that Jira adds later.
- Choose Specific Spaces, and select the spaces in the Import column. A new space waits until you select it.
Agent Golf reads the list of spaces again every hour. When a space comes back, the same work items, follows, and pull-request links show again.
A work item and its parent can be in different spaces. When the space of the parent is not imported, the work item shows with no parent. For example, a story of a shown space under an epic of a hidden space shows with no epic.
Private spaces
The Spaces card shows a lock on a space that is private in Jira. A private space follows the same import choice as every other space. With All Spaces, each workspace of the organization sees its work items. To keep the work items of a private space from every workspace, choose Specific Spaces and clear the space.In a workspace
A workspace cannot connect, disconnect, or change Jira. In a workspace, Settings > Integrations > Jira shows the Jira connection of the organization, read only, with its imported spaces. Users with Manage Organization Integrations also see Manage in Organization Settings. Each user of each workspace of the organization sees the titles and the spend of every imported work item. Agent Golf does not apply the permissions of Jira to its users.Work items with an issue security level
Agent Golf does not import a work item that has an issue security level, because Jira shows that work item only to some people.- A stored work item that gets a security level leaves every workspace at the next change from Jira, or at the daily check at the latest.
- A pull request that names such a work item gets no link to it, so its cost counts as unplanned.
- The child work items import as usual, with no parent.
Pull-request links
Agent Golf links a pull request to a Jira work item when the key of the work item, for examplePLAT-142, is in the pull request:
- In the title or the description, in uppercase.
- In the head branch name, in any case, for example
plat-142-retries.
UTF-8 makes no link, unless you import a space with the key UTF. A key of a space that is not imported makes no link, and Agent Golf sends no request to Jira for it. When you import that space later, Agent Golf reads the pull requests again and adds the links.
When a pull request names a work item that Agent Golf has not imported, Agent Golf imports that work item and its parents in imported spaces, with either work choice. When Jira does not return the work item, for example because the connecting account cannot see it, the pull request gets no link, and Keys Not Found counts the key.
When an author removes a key from the pull request, the link goes away. Agent Golf reads the pull requests of every workspace of the organization. It does not read the pull requests that Jira shows in its Development panel.
Keep the data current
Jira sends Agent Golf an event when a work item or a version changes. Agent Golf then reads the changed item from Jira and updates its copy. A change usually shows in Agent Golf within a few minutes. When you delete a work item in Jira, Agent Golf archives its copy, and its pull requests no longer count for it. Jira can fail to deliver an event. These passes find what the events missed:- Every 10 minutes, Agent Golf reads the work items that changed in Jira since the last pass.
- Every hour, Agent Golf reads the list of spaces again.
- Once a day, Agent Golf checks that each stored work item still exists, and archives each work item that Jira deleted.
One Jira site, one organization
A Jira site connects to one Agent Golf organization at a time. To connect it to another organization, an admin of the first organization must disconnect it first. Atlassian keeps one access for each app and each Atlassian account. So Agent Golf refuses a connect when the Atlassian account can also use a Jira site that another Jira connection reads. Connect that site with another Atlassian account. A reconnect of the same connection is not refused.Disconnect
- On the Jira page, select Disconnect.
- Confirm in Disconnect Jira.
Remove the app in Atlassian
Atlassian has no way for Agent Golf to give back its access. Atlassian keeps the access of the Agent Golf app until you remove the app. After a disconnect, the Jira page shows Open Connected Apps in Atlassian.- The person who connected Jira removes the app in the connected apps of their Atlassian account, at id.atlassian.com/manage-profile/apps.
- A site admin can remove the app in Atlassian Administration.
Reconnect
Select Reconnect on the Jira page, and accept the access in Atlassian again. Agent Golf uses the same connection, so the imported data, the follow lists, the import choice, and the spaces stay. When the state is Needs Reconnect, select Reconnect Jira, and reconnect in the same way.Delete the data
You can delete the imported data of a disconnected Jira site. You need Manage Organization Integrations.- Disconnect Jira.
- On the Jira page, select Delete Imported Data.
- Read the dialog. It names the Jira site and counts the initiatives, epics, work items, versions, and pull request links that are not archived.
- Type the Jira site name, and select Delete Imported Data.
Other deletions
- Deletion of the organization deletes the same data as Delete Imported Data.
- Deletion of a workspace deletes only the follow lists of that workspace.
- Delete Usage Data, Delete Organization Data, and the deletion after a plan ends do not delete the Jira data. See Data Retention & Deletion.