Skip to content

Automate Jira with Elitea

This is a worked example: a Jira Automation rule calls an Elitea agent whenever someone clicks a button on an issue, the agent fetches the issue with its Jira toolkit, reviews it against your instructions, and posts the review back as a comment. Adapt the same pattern to other Jira-triggered workflows.

    1. Create an agent (or edit an existing one) at /agents/create.
    2. Give it instructions that describe the review, for example: “You will receive a Jira issue key as input. Use the Jira toolkit to fetch the issue’s details, review it, then post a comment on the same issue summarizing gaps and clarifying questions.”
    3. Attach a Jira toolkit configured with your Jira instance and a credential that can read and comment on issues — see Use credentials in a toolkit.
    4. Save the agent.
Create-toolkit form for a Jira toolkit type

Elitea’s chat API works against a conversation, not a bare agent call, so you set this up once and reuse it:

    1. Create a personal access token for the automation to authenticate with — see Create a personal access token.
    2. Create a conversation with your review agent as its participant, and note the conversation’s ID and the agent’s participant ID within it.
    3. Keep both IDs — the automation rule will post every trigger into this same conversation.

In Jira, create an Automation rule with a manual trigger (a button on the issue view) and a Send web request action:

  • Method: POST
  • URL: your Elitea instance’s message endpoint for the conversation you created (/api/v2/elitea_core/messages/prompt_lib/{projectID}/{conversationID})
  • Headers: Authorization: Bearer <your personal access token>
  • Body: a JSON payload carrying the participant ID and the issue key as the user input, for example using Jira’s {{issue.key}} smart value in place of a literal key.

Run the automation manually on a test issue first. If nothing happens, check: the personal access token hasn’t expired, the conversation and participant IDs are correct, and the Jira credential attached to the toolkit still has permission to comment on the issue.