> ## Documentation Index
> Fetch the complete documentation index at: https://codemodcom.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Jira Integration

Connect Codemod to your Jira workspace to sync issues with your projects and automatically track progress of your code transformation campaigns.

## Why Integrate Jira?

Integrating Codemod with Jira allows you to:

* Link code transformation projects to Jira epics for tracking
* Automatically sync task progress between Codemod and Jira
* Trigger codemods based on Jira issue updates

## Setting Up the Integration

### Step 1: Navigate to Organization Settings

Sign in to [Codemod](https://app.codemod.com) and navigate to your organization settings:

1. Select your organization from the team switcher
2. Go to **Settings** from the organization menu
3. Scroll down to the **Project Management Integrations** section

### Step 2: Connect Jira

Click the **"Connect Jira"** button to begin the integration process.

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-connect-btn-dark.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=5b9af898b3e4e5da73f911ff5899468d" alt="Screenshot of organization settings page with PM integrations section" title="Screenshot of organization settings page with PM integrations section" className="hidden dark:block mx-auto" style={{ width:"58%" }} width="916" height="400" data-path="images/integrations/jira-step-connect-btn-dark.png" />

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-connect-btn-light.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=1c372033192e011269fb8c9ef42804c8" alt="Screenshot of organization settings page with PM integrations section" title="Screenshot of organization settings page with PM integrations section" className="block dark:hidden mx-auto" style={{ width:"58%" }} width="916" height="400" data-path="images/integrations/jira-step-connect-btn-light.png" />

### Step 3: Create a Jira API Token

Before proceeding, you'll need to create an Atlassian API token:

<Steps>
  <Step title="Navigate to Atlassian Account Settings">
    Go to [Atlassian API Tokens](https://id.atlassian.com/manage-profile/security/api-tokens) and sign in to your account.
  </Step>

  <Step title="Create API Token">
    1. Click **"Create API token"**
    2. Enter a label (e.g., "Codemod Integration")
    3. Click **"Create"**
    4. Copy the generated token immediately

    <Warning>
      Make sure to copy the token right away. Atlassian will only show it once for security reasons.
    </Warning>
  </Step>
</Steps>

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-create-token-dark.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=a8fc141353b7ab16b7c8ffd243cf0a4e" alt="Screenshot of Atlassian API token creation page" title="Screenshot of Atlassian API token creation page" className="hidden dark:block mx-auto" style={{ width:"58%" }} width="1200" height="802" data-path="images/integrations/jira-step-create-token-dark.png" />

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-create-token-light.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=7f4fb2ae9eb96dc5a0773d28b97a070c" alt="Screenshot of Atlassian API token creation page" title="Screenshot of Atlassian API token creation page" className="block dark:hidden mx-auto" style={{ width:"58%" }} width="1200" height="802" data-path="images/integrations/jira-step-create-token-light.png" />

### Step 4: Configure Jira Integration

Fill in the Jira integration form with your workspace details:

<ParamField body="baseUrl" type="string" required>
  Your Jira Cloud instance URL (e.g., [https://your-domain.atlassian.net](https://your-domain.atlassian.net))
</ParamField>

<ParamField body="email" type="string" required>
  The email address associated with your Jira account
</ParamField>

<ParamField body="apiToken" type="string" required>
  The API token you created in the previous step
</ParamField>

<ParamField body="webhookSecret" type="string">
  Optional webhook secret for validating webhook signatures (recommended for security)
</ParamField>

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-configure-dark.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=b09f95f201c8f60f99d8c8ea0ea63b9b" alt="Screenshot of Jira integration configuration form" title="Screenshot of Jira integration configuration form" className="hidden dark:block mx-auto" style={{ width:"58%" }} width="1000" height="1152" data-path="images/integrations/jira-step-configure-dark.png" />

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-configure-light.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=4d5e282801e22e0a98d88418c605462f" alt="Screenshot of Jira integration configuration form" title="Screenshot of Jira integration configuration form" className="block dark:hidden mx-auto" style={{ width:"58%" }} width="1000" height="1152" data-path="images/integrations/jira-step-configure-light.png" />

Click **"Connect Jira"** to complete the initial setup.

## Webhook Configuration (Recommended)

Webhooks allow Codemod to receive real-time updates when Jira issues change. This is optional but recommended for the best experience.

### Step 1: Access Webhook Settings

After connecting Jira, you'll see webhook configuration options in your organization settings:

1. Find your connected Jira integration in the settings
2. Click the **webhook icon** to configure webhooks

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-pm-table-dark.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=afa56554df5b59e09dcff8ffa8ec602e" alt="Screenshot showing webhook configuration button in settings" title="Screenshot showing webhook configuration button in settings" className="hidden dark:block mx-auto" style={{ width:"58%" }} width="1634" height="530" data-path="images/integrations/jira-step-pm-table-dark.png" />

<img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-step-pm-table-light.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=e39ffc0dc2ef5ce02899f3a206aa0953" alt="Screenshot showing webhook configuration button in settings" title="Screenshot showing webhook configuration button in settings" className="block dark:hidden mx-auto" style={{ width:"58%" }} width="1634" height="530" data-path="images/integrations/jira-step-pm-table-light.png" />

### Step 2: Configure Webhook in Jira

<Steps>
  <Step title="Copy webhook URL">
    Copy the webhook URL provided in the Codemod webhook configuration modal.
  </Step>

  <Step title="Navigate to Jira webhook settings">
    Go to your Jira workspace at `https://your-domain.atlassian.net/plugins/servlet/webhooks`

    Or navigate manually:

    1. Go to **Jira Settings** (⚙️ icon)
    2. Select **System** → **Webhooks**
    3. Click **"Create a webhook"**
  </Step>

  <Step title="Create webhook">
    Fill in the webhook details:

    * **Name**: `Codemod Integration`
    * **Status**: `Enabled`
    * **URL**: Paste the webhook URL from Codemod
    * **Issue related events**: Check all issue events (created, updated, deleted)
  </Step>

  <Step title="Add webhook secret">
    Generate a webhook secret and copy it. This will be used to validate the webhook signature.
  </Step>
</Steps>

### Step 3: Save Webhook Configuration

Back in Codemod, enter your webhook secret and save the configuration.

## Managing Your Jira Integration

### Updating Credentials

To update your Jira API token or email:

1. Go to **Organization Settings** → **Project Management Integrations**
2. Find your Jira integration and click the **credentials icon** (🔑)
3. Enter your updated email and API token
4. Click **"Update Credentials"**

### Updating Webhook Settings

To modify webhook configuration:

1. Go to **Organization Settings** → **Project Management Integrations**
2. Find your Jira integration and click the **webhook icon**
3. Update your webhook secret
4. Click **"Save Webhook Configuration"**

## Linking Projects to Jira Epics

Once Jira is integrated, you can link individual Codemod projects (campaigns) to Jira epics for tracking.

### From a Project Page

<Steps>
  <Step title="Navigate to your project">
    Open any Codemod project/campaign from your dashboard.
  </Step>

  <Step title="Click 'Link to Jira Epic'">
    In the project header area, you'll see a **"Link to a Jira Epic"** button with the Jira logo.

    <img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-campaign-setting-dark.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=a418269038d5d42b6074b85f7d359299" alt="Screenshot showing the link button in project header" title="Screenshot showing the link button in project header" className="hidden dark:block mx-auto" style={{ width:"58%" }} width="1462" height="216" data-path="images/integrations/jira-campaign-setting-dark.png" />

    <img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-campaign-setting-light.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=c23bf5c4eb10fbd4317296cea370a86c" alt="Screenshot showing the link button in project header" title="Screenshot showing the link button in project header" className="block dark:hidden mx-auto" style={{ width:"58%" }} width="1462" height="216" data-path="images/integrations/jira-campaign-setting-light.png" />
  </Step>

  <Step title="Select Jira workspace">
    If you have multiple PM integrations, select your Jira workspace from the provider dropdown.
  </Step>

  <Step title="Search and select epic">
    1. Search for your Jira project or epic by typing in the search field
    2. Select the appropriate Jira project from the dropdown
    3. The format will show: `PROJECT-KEY - Project Name`

    <img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-campaign-modal-dark.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=b74fcf60fffa6707debb9864eeee7226" alt="Screenshot of project linking modal with Jira project selection" title="Screenshot of project linking modal with Jira project selection" className="hidden dark:block mx-auto" style={{ width:"58%" }} width="896" height="688" data-path="images/integrations/jira-campaign-modal-dark.png" />

    <img src="https://mintcdn.com/codemodcom/NBnj32UUWpJh93CD/images/integrations/jira-campaign-modal-light.png?fit=max&auto=format&n=NBnj32UUWpJh93CD&q=85&s=df27c3266a5a7e9e81afd2ce6dc6d00e" alt="Screenshot of project linking modal with Jira project selection" title="Screenshot of project linking modal with Jira project selection" className="block dark:hidden mx-auto" style={{ width:"58%" }} width="896" height="688" data-path="images/integrations/jira-campaign-modal-light.png" />
  </Step>

  <Step title="Confirm linking">
    Click **"Link Project"** to establish the connection between your Codemod campaign and the Jira epic.
  </Step>
</Steps>

### Viewing Linked Projects

Once linked, you'll see the connection status in your project:

* **Linked projects** display the Jira project key and name
* **Status sync** shows progress updates from Jira
* **Quick access** provides direct links to the associated Jira epic

## Benefits of Project Linking

<CardGroup cols={2}>
  <Card title="Progress Tracking" icon="chart-line">
    Automatically sync task progress between Codemod campaigns and Jira epics for unified reporting.
  </Card>

  <Card title="Team Visibility" icon="users">
    Keep your entire team informed about code transformation progress through familiar Jira workflows.
  </Card>

  <Card title="Project Management" icon="tasks">
    Integrate code modernization efforts into your existing project management and sprint planning.
  </Card>

  <Card title="Audit Trail" icon="clipboard-list">
    Maintain complete visibility and traceability of all code changes through Jira issue tracking.
  </Card>
</CardGroup>

## Required Permissions

Your Jira API token needs the following permissions:

**Read** access to:

* Projects and project configurations
* Issues and issue metadata
* User information

**Write** access to:

* Issues (to sync status updates)
* Comments (for progress notifications)

<Info>
  These permissions are typically included with standard Jira user accounts. Admin permissions are not required.
</Info>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Authentication failed">
    * Verify your Jira base URL is correct (should be [https://your-domain.atlassian.net](https://your-domain.atlassian.net))
    * Check that your email matches your Jira account email exactly
    * Ensure your API token is valid and hasn't expired
    * Try generating a new API token from Atlassian
  </Accordion>

  <Accordion title="Cannot find projects when linking">
    * Confirm you have access to the Jira projects you're trying to link
    * Check that the projects exist in the Jira workspace you connected
    * Verify your API token has read access to the specific projects
    * Try refreshing the project list or searching with different terms
  </Accordion>

  <Accordion title="Webhooks not working">
    * Verify the webhook URL is correctly configured in Jira
    * Check that the webhook is enabled in Jira settings
    * Ensure the webhook secret matches between Jira and Codemod (if used)
    * Confirm that issue events are selected in the Jira webhook configuration
  </Accordion>

  <Accordion title="Status sync issues">
    * Check that webhooks are properly configured and enabled
    * Verify network connectivity between Jira and Codemod
    * Ensure your API token has write access to update issues
    * Try unlinking and relinking the project
  </Accordion>
</AccordionGroup>

## Security Considerations

<Warning>
  Keep your Jira API token secure and never share it publicly or commit it to version control.
</Warning>

* **Token Security**: All API tokens are encrypted at rest and in transit using industry-standard encryption
* **Webhook Validation**: Use webhook secrets to validate incoming requests from Jira
* **Minimal Access**: Only grant the minimum required permissions for your integration needs
* **Regular Rotation**: Consider rotating API tokens regularly for enhanced security
* **Access Review**: Regularly review which projects and issues have access in your Jira workspace

## Managing the Integration

To disconnect or modify the Jira integration:

1. Go to **Organization Settings** → **Project Management Integrations**
2. Find your Jira integration and click **"Disconnect"** or the configure buttons

To revoke access from Jira's side:

1. Go to [Atlassian API Tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
2. Find the Codemod token and click **"Delete"**

***

**Need help?** If you encounter any issues setting up the Jira integration, please contact our support team or visit our documentation for additional troubleshooting steps.
