Skip to main content

Jira integration for Code Agents

The Jira integration reads issues from your Jira Cloud site so that Code Agents can show the epics and stories your teams deliver next to AI cost.

Overview​

The integration reads Jira issues by key, together with their parents, story points, and status history. It authenticates with the API token of a Jira user, reads only the projects you select, and writes nothing to Jira.

Coralogix joins this data with your Claude Code telemetry, which Coralogix stores in the log events and spans datasets. The Features section on the Impact tab of the Claude dashboard then lists your epics and stories with their merged pull requests, assignees, and status. See View Jira data in Code Agents.

What you need​

The Impact tab on the Claude dashboard in Code Agents needs three sources:

  • Jira or Linear, for your epics, stories, projects, and issues.
  • GitHub with Event format set to Pull request activity, for your pull requests.
  • Claude Code with span telemetry turned on, for the session cost.

For the Jira integration​

  • A Jira Cloud site with a URL of the form https://your-site.atlassian.net. Custom domains are not supported.
  • A Jira user whose API token the integration uses. Use a dedicated integration user or an Atlassian service account. The integration sees only the projects and issues this user can see, so the user needs the Browse Projects permission in every project you select.
  • The IDs of the fields that hold your story points. See Find the story point field IDs.
  • To create the integration in Coralogix, INTEGRATIONS:DEPLOY (Data Admin and Platform Admin roles). See Permissions.

Prepare Jira​

Create an API token​

  1. Sign in to Jira as the user the integration reads issues as.
  2. Create an API token in Atlassian account settings. For a service account, create it in Atlassian Administration.
  3. When you create a scoped token, give it the read:jira-work scope.
  4. Copy the token. Atlassian shows it only once.

Find the story point field IDs​

Each Jira site has its own field IDs, and Coralogix reads story points from the fields you list. Company-managed projects usually use the Story Points field, and team-managed projects use Story point estimate.

  1. In Jira settings, go to Issues, then Custom fields.
  2. Open the menu of the story points field and select View field information.
  3. In the URL, find customFieldId followed by a number. The field ID is customfield_ followed by that number, for example customfield_10016.

Set up​

  1. From the Coralogix toolbar, go to Data Flow, then Integrations.

  2. Select Jira Cloud, then select Add New.

  3. In Instructions, review the steps and select Next.

  4. In Settings, define the integration:

    FieldDescription
    Integration nameRequired. Defaults to Jira Cloud.
    Site URLRequired. The URL of your Jira Cloud site, for example https://your-site.atlassian.net.
    EmailRequired. The email address of the Jira user the API token belongs to.
    API tokenRequired. The Atlassian API token of that user.
    All projectsOff by default. When on, the integration reads issues from every project the user can see. When off, it reads only the projects you list in Project keys.
    Project keysRequired when All projects is off. The keys of up to 100 projects, for example ABC. A key starts with a letter and contains only letters, digits, and underscores. Include the projects of your epics and initiatives, or those parents are not returned.
    Story point field IDsRequired. The IDs of 1 to 10 fields that hold story points, in the form customfield_ followed by digits.
    Organization nameOptional. The name of your organization, up to 256 characters.
  5. Select Create. When you edit an existing integration, select Save.

Coralogix tests the connection to Jira first and creates or updates the integration only when the test passes. When the test fails, Coralogix shows the reason in an error message and keeps the form open.

Replace an expired token

API tokens expire. When Jira rejects the token, the integration stops until you save it with a new one. Open the integration, enter a new API token, and select Save.

View Jira data in Code Agents​

Jira data appears in the Features section of the Impact tab on the Claude dashboard.

  1. In Coralogix, navigate to AI Center, then Code Agents, then Claude.
  2. Select the Impact tab, then go to the Features section.
  3. Use the time range picker to set the period.

The section heading reads Delivery in followed by the tracker you are viewing. When you connect both Jira and Linear, the section opens on Jira. Select the tracker name in the heading to switch between Jira and Linear, or to connect the one you have not set up. Switching to Linear shows the data described in Linear integration for Code Agents.

The section shows:

  • Total AI cost for the selected period, with the change against the previous period and the number of sessions behind it.
  • Epics delivered, Cost per epic, and Cost not attributed, with the Epic cost distribution and Epics delivered over time charts. At story level they read Stories delivered, Cost per story, Story cost distribution, and Stories delivered over time.
  • A toggle that switches the list between Epic and Story. The list opens on Epic.
  • A list of all epics or all stories, with a search box and an export button that saves the list as a comma-separated values (CSV) file. The list shows the first 5,000 items.

Each row in the list shows:

ColumnDescription
Epic or StoryThe Jira key and the title of the item.
AI costThe AI cost attributed to the item.
Stories doneEpic level only. The stories of the epic that are done.
Merged PRsThe number of merged pull requests linked to the item. Shows a dash until you connect GitHub.
ModelsThe models behind the item's AI cost.
UsersThe assignees of the item. The first user appears, and + followed by a number opens the rest. For an epic, the users are the assignees of its stories.
Cost / story doneEpic level only. AI cost divided by Stories done.
StatusStory level only. Done when the story is in the Done status category, otherwise In progress.

Select a row to open the item's pull requests, each with its Attributed cost, Time to merge, and State.

The list includes the items updated or completed in the selected period, and the items with merged pull requests. Coralogix links merged pull requests to Jira items by the Jira key in the branch name or the pull request title. Coralogix reads the branch name first and uses the first key it finds. A session's cost lands on its branch, so it reaches the item whose key that branch carries. Cost on a branch with no key goes to Cost not attributed. At story level, the list counts every item at that level, tasks and bugs included, and the cost of a subtask rolls up to its parent.

For what each widget means and how cost is attributed, see Code Agents ROI.

When you have not connected a tracker, the section shows a checklist with Connect Jira or Linear and Connect GitHub. Without the GitHub integration, a Connect GitHub notice explains that merged pull requests need it.

Troubleshoot​

SymptomCauseResolution
Create or Save fails with a test errorCoralogix cannot read Jira with the values you entered.Check that Site URL is the atlassian.net URL without a custom domain, that Email belongs to the user who owns the token, and that a scoped token has the read:jira-work scope.
Data stops arriving after working for a whileThe API token expired, and the integration stops when Jira rejects it.Create a new token and save the integration with it.
An epic or initiative is missing for a storyThe project of the parent is not in Project keys, so the parent is not returned.Add the parent's project key, or turn on All projects.
A project returns no issuesThe integration sees only what the Jira user can see, and the user lacks the Browse Projects permission in that project.Grant the user the Browse Projects permission in the project.
An item has no merged pull requestsNo branch name or pull request title carries the item's Jira key, or GitHub is not connected.Put the Jira key in the branch name, which is the most reliable place because the branch exists before the pull request. A key in the pull request title also works. Set up the GitHub integration for Code Agents.
New issues or status changes do not appearNew issues can take up to about two hours to appear, and status changes a few hours.Check again later.
An item is missing from the listThe list shows items updated or completed in the selected period, and items with merged pull requests.Widen the time range.
Last updated on