> ## Documentation Index
> Fetch the complete documentation index at: https://qovery-docs-new-messaging-and-agent-tasks.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Jira Coding Agent

> Ready-made Agent Task that picks up a Jira issue and proposes the corresponding code change

<Warning>
  **Early Preview.** Agent Tasks is in early development and not yet generally available. Capabilities and setup will change before release.
</Warning>

## Overview

Picks up a Jira issue and proposes the corresponding code change as a pull request against the repository (or repositories) you connect.

## Setting It Up

<Steps>
  <Step title="Create the agent task">
    From the **Agent use cases** section when creating a new service, pick **Jira Coding Agent** (see [Creating an Agent](/configuration/agent-tasks/overview#creating-an-agent)).
  </Step>

  <Step title="Configure Jira access (optional)">
    The template ships with three environment variables for connecting to Jira: a base URL (for example `company.atlassian.net`), an email, and an API token. If you don't need Jira access for your workflow, remove these and adapt the instructions accordingly.

    To create the API token:

    1. Click your profile in the top right of Jira, then **Account Settings**
    2. Go to **Security**
    3. Under **Create and manage API tokens**, click **Create API token**
  </Step>

  <Step title="Connect the repository">
    Add the Git repository, or repositories, this agent should code against as its Context. You can also add a Qovery service as Context, alongside its repository.
  </Step>

  <Step title="Choose a Provider">
    Enter your Anthropic API key, the only provider supported today.
  </Step>

  <Step title="Add MCP Servers (Optional)">
    Not required for this use case by default, add any if your workflow needs them. See [Add MCP Servers](/configuration/agent-tasks/overview#creating-an-agent).
  </Step>

  <Step title="Add a trigger">
    Select **From a webhook**, and copy the generated webhook URL from the agent task's overview page, you'll need it next.
  </Step>

  <Step title="Point Jira at the webhook">
    In Jira, go to your project's **Settings > Automation**, then **Create flow > Create from scratch**. For example, to call the agent whenever a label is added: choose the **Field value changed** trigger, select **Labels** as the field, and leave the change type as **Any changes to the field value**. Add a JQL condition to scope it (for example `labels = "go-agent"`), then add a **Send web request** action with the URL from the previous step, method `POST`, and body **Issue data (Automation format)**.

    <Frame>
      <img src="https://mintcdn.com/qovery-docs-new-messaging-and-agent-tasks/fuOVJDOehgnYG_y5/images/configuration/agent-tasks/jira-automation.png?fit=max&auto=format&n=fuOVJDOehgnYG_y5&q=85&s=7ae392ec322f61900418aab197ddb571" alt="Jira automation flow with a Value changes for Labels trigger, a labels condition, and a Send web request action" width="2784" height="1830" data-path="images/configuration/agent-tasks/jira-automation.png" />
    </Frame>

    Save the flow, then add the label (for example `go-agent`) to a Jira issue to test it: your environment will be cloned to work on the ticket's request.
  </Step>

  <Step title="Add an output (optional)">
    To have the agent post to Slack when it's done, add a webhook output pointing to a [Slack Incoming Webhook](https://api.slack.com/messaging/webhooks) URL. See [Outputs](/configuration/agent-tasks/overview#outputs) for the setup steps.
  </Step>
</Steps>

See [Configuration](/configuration/agent-tasks/overview#configuration) for resources, governance, and environment variables shared by every agent task, and [Execution Mode](/configuration/agent-tasks/overview#execution-mode) for choosing how it runs.
