Skip to main content
Connect your Jira site to your Agent Golf organization so that Agent Golf can show the spend of your initiatives, epics, and work items. You connect once for the organization, and each workspace of the organization sees the imported spaces. The roadmap then shows the Jira data. See Jira on the roadmap.

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

  1. Open Settings, choose Organization at the top of the navigation, then select Integrations > Jira.
  2. Read Access That Agent Golf Asks For, then select Connect Jira. Atlassian opens.
  3. In Atlassian, choose the Jira site, and accept the access. Atlassian returns you to Agent Golf, and the page shows “Connecting Jira…”.
  4. Choose What to Import opens. Continue with Choose the import.
Finish the connect in the same browser tab within 10 minutes. Otherwise, Agent Golf shows Jira Is Not Connected, and you must connect again. See Connect errors.

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.
  1. Select the site that Agent Golf reads.
  2. Select Continue. Atlassian asks you to confirm the access for that site once more.
One connection reads one Jira site. To connect a second site, connect Jira again with another Atlassian account. See One Jira site, one organization.

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.
The app asks for no write access to your work, and for no access to the users of your Jira site. It writes only its own webhook to Jira. Agent Golf reads Jira as the Atlassian account that connected it. It sees only the spaces and the work items that this account can browse. For the data that Agent Golf keeps, see What Agent Golf keeps.

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.
Agent Golf does not keep descriptions, comments, attachments, labels, worklogs, issue security levels, or the people of your Jira site, such as assignees and reporters. It does not import a work item that has an issue security level. See Work items with an issue security level. A Jira work item event can include the full work item, its description, and the people who changed it. From each event, Agent Golf keeps only the event type, its time, the IDs of the changed work item or version and of its space, the key of the work item, and the IDs of the matching webhook registrations. Then it reads the item from Jira again. Agent Golf deletes each kept event after 7 days. An event that Agent Golf could not process moves to a separate store within those 7 days and stays there for 30 days, so it is deleted at most 37 days after it arrives. The organization that connected Jira owns the data. Each workspace of the organization sees every imported space. The imported data counts in Pull Request Storage. See Meters. No retention window applies to it. See What stays, and for how long. A disconnect keeps the imported data. To delete it, see Delete the data.

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:
  1. Under 1. Spaces, choose All Spaces or Specific Spaces. For Specific Spaces, select the spaces. Select Next.
  2. Under 2. Work, choose Active Work or All Work, with History.
  3. 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.
A change saves at once, and Agent Golf imports again with the new spaces. Each row shows the space name, its key, a lock for a private space, and its status: 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.
Agent Golf links a pull request to a Jira work item when the key of the work item, for example PLAT-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.
A key counts only when its space is imported. So text such as 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

  1. On the Jira page, select Disconnect.
  2. Confirm in Disconnect Jira.
Agent Golf stops the sync, deletes its webhook at Jira, and deletes its stored access tokens. It keeps the imported data, the follow lists, the import choice, and the spaces. The Jira page and the roadmap show the data from the date of the disconnect. When Jira does not accept the webhook delete, the disconnect still completes. The webhook then expires within 30 days, and Agent Golf ignores its events.

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.
  1. Disconnect Jira.
  2. On the Jira page, select Delete Imported Data.
  3. Read the dialog. It names the Jira site and counts the initiatives, epics, work items, versions, and pull request links that are not archived.
  4. Type the Jira site name, and select Delete Imported Data.
Agent Golf deletes its webhook at Jira when it can. Then it deletes the connection, the spaces, the imported items with the archived items, their pull-request links, the keys not found, and the follow lists that name the items. No workspace sees the data from that time. You cannot undo the deletion. Until the deletion ends, the organization Jira page shows the connection as Deleting Data, and a workspace no longer shows it. To see Jira data again, connect Jira again. Agent Golf then imports the data again.

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.
For how long backups keep deleted data, see Delete data in the cloud.