Docs

Integrations

Jira

Assign Jira tickets to Gleamrun and turn them into pull requests.

Jira integration connection card
Open the Jira card in Workspace Settings → Integrations to connect your Atlassian site.

Connect without personal OAuth

Open Workspace Settings → Integrations → Jira. Under Connect, choose Use a service account instead to connect with an Atlassian Admin Hub service account. All reads and writes use that account. Gleamrun never falls back to a personal account in this mode.

  1. Create the service credential
    Ask an organization administrator to open Atlassian Administration → Directory → Service accounts. The administrator must give the bot Jira application access and create an OAuth 2.0 credential. For supported Jira Software operations, start with read:jira-user, read:jira-work and write:jira-work. Also grant the project permissions below. This mode requires a manual webhook, even with dynamic webhook management scopes.
  2. Check credentials and choose projects
    Enter the canonical HTTPS Jira Cloud site URL, client ID and client secret in Gleamrun. Choose Check credentials, then select projects, destinations and status mappings. The account needs access to every selected project. Service Management projects are excluded.
  3. Verify comment writes
    Choose an issue in a selected project and use Post test comment. Gleamrun posts a retained bot comment and reads it back. Read access and project permissions alone do not prove the credential can write comments.
  4. Configure the signed webhook
    Ask a Jira administrator with Administer Jira permission to open Jira Settings → System → Advanced → WebHooks → Create a WebHook. Copy the callback URL, signing secret and project JQL from Gleamrun. Use the webhook signing secret, which is separate from the OAuth client secret. Enable Issue created, updated and deleted and Comment created. Include the request body. Then save.
  5. Verify delivery
    Edit an issue in a selected project, then choose Check again in Gleamrun. The first valid selected-project event confirms setup without launching an agent. API access alone leaves the connection waiting for a signed event. Subsequent triggers retain normal workspace authorization and funding checks.

Maintain the bot's Jira permissions and the manual webhook's URL, secret, events and project filter. Changing selected projects disables the old callback URL and secret. Update the URL, signing secret and filter in Jira. Then verify a fresh event.

Gleamrun creates short-lived access tokens automatically.

A project with no recent events does not necessarily have a failed webhook.

To rotate credentials for the same bot, choose Replace credentials under Connection. To rotate the webhook, choose Rotate…. This immediately disables the old callback. Update both the URL and signing secret in Jira. Then verify a new event.

Disconnecting removes local access. To remove remote access too, disable the webhook in Jira and revoke the credential in Admin Hub. Existing OAuth connections are not converted automatically.

Webhook lifecycle and delayed events
Gleamrun rejects signed events older than 24 hours or more than five minutes in the future. After service recovers from a prolonged outage, generate a new event. Keep an administrator responsible for webhook maintenance. Webhook behavior after the creating administrator loses access has not been verified.

Move an existing OAuth connection

In the Jira card, open Connection and choose Switch… next to Switch to a service account. Enter the service account's client credentials and an issue in a selected project. Choose Check new credentials.

OAuth remains active during verification. Post a verification comment and read it back. The comment remains on the issue. Configure a separate signed candidate webhook and verify an event. Neither candidate events nor verification comments start agents.

Verify both comment writes and signed-event delivery with fresh checks before choosing Switch to service account. The connection, task mappings, projects, targets and Gleamrun operator stay in place. To avoid duplicate work across transports, Gleamrun ignores events from before activation. After the switch, trigger any unfinished requests again.

Gleamrun retains the original OAuth grant only so you can switch back. Service mode never uses it as a fallback. Before restoring the same connection, Switch back verifies the retained grant and a unique matching dynamic webhook. Switching back may fail if the grant was revoked. Service mode then stays active.

To discard the stored Atlassian credentials and remove the option to switch back, choose Discard option. Then remove the old webhook and revoke the old personal app grant in Atlassian.

Set up Jira

  1. Connect your Atlassian site
    In Workspace Settings → Integrations → Jira, click Connect and approve access. A workspace connects to one Jira site.
  2. Check project permissions
    For each project you plan to watch, the connecting Atlassian account needs Browse Projects, Assignable User, Add Comments, and Edit Own Comments. Gleamrun refuses the connection when any required permission is missing. See Jira permissions.
  3. Choose projects and stacks
    Select the projects Gleamrun should watch, then choose which stack receives each project's tickets. At least one project must be selected.
  4. Map statuses
    Pair each Gleamrun task status with its Jira equivalent. Leave a status on Do not move the ticket when it should not sync.
  5. Choose who writes comments
    By default, Jira activity comes from the Atlassian account that authorized the connection. To write as a bot, connect a service account.
Jira Service Management is not supported
Gleamrun excludes Service Management projects because comments can be shown to and emailed to external reporters.

Jira permissions

Check these permissions on every watched project. Grant required permissions when they are missing. Grant optional permissions for the features you want to use.

Jira project permissions used by Gleamrun
PermissionRequirementWhat Gleamrun uses it for
Browse ProjectsRequiredRead watched projects and their work items.
Assignable UserRequiredUse assignment to start work.
Add CommentsRequiredPost pickup, status, and verification comments.
Edit Own CommentsRequiredEdit Gleamrun's status and verification comments in place.
Transition work items (TRANSITION_ISSUES)OptionalMove work items between mapped statuses.
Link work items (LINK_ISSUES)OptionalAdd pull-request links to work items.
Create attachments (CREATE_ATTACHMENTS)OptionalPublish current verification screenshots and recordings in Jira's Attachments section.
Delete own attachments (DELETE_OWN_ATTACHMENTS)OptionalReplace Gleamrun's older verification files after a new version is confirmed.

In standalone service-account mode, grant the required Jira permissions only to the bot. No personal Atlassian grant or personal fallback is used. For an OAuth connection, grant the permissions to the connecting account and, when configured, its optional service writer. Only that OAuth mode can fall back to the connecting account. Neither account needs Edit All Comments: when the writing account changes, Gleamrun posts a new status or verification comment instead of editing the other account's. The earlier comment stays on the ticket and is no longer updated; you can delete it.

Connections made before Edit Own Comments was required keep working without a reconnect. If a Gleamrun status or verification comment stops updating, the account that wrote it lacks Edit Own Comments on that project, or the ticket is in a status that locks comment edits. Grant the permission to resume updates.

Check each permission first, then grant only what is missing:

  • Company-managed project: use Jira's Permission Helper for the account and project. If the permission is missing, go to Space settings to Permissions to Actions to Edit permissions to the missing permission to Grant.
  • Team-managed project: go to Space settings to Access and check the account's role. If the account has no role or only Viewer, give it the Member role, which includes every required permission.

OAuth scopes and the Jira User application role do not grant or change project permissions.

Start work from Jira

Any of these actions starts an agent for a ticket in a watched project:

  • Assign the ticket to the account Gleamrun writes as.
  • Add the Gleamrun label. Matching is case-insensitive but exact; Gleamrun-backend does not trigger an agent.
  • @-mention the account in a comment. Select it from Jira's autocomplete; plain text containing “Gleamrun” does not count as a mention.
  • Create the ticket with that assignment or label already applied.
Account names can change
Assignment and mention triggers follow the Atlassian account, so renaming it does not break them. The label remains exactly Gleamrun.

Personal account linking and run ownership

In User Settings → Account → Connected accounts, link your personal Atlassian account. This identifies who requests a Jira run; it does not change the account Gleamrun uses to write to Jira.

A new run belongs to the eligible member who added the triggering label, changed the assignment, or wrote the triggering mention. The Jira issue's assignee does not determine the run owner. If no eligible member matches, Gleamrun uses the eligible member who connected Jira. A verified Gleamrun email can also identify you when Jira returns exactly that email for one active person. Hidden or ambiguous emails do not produce a match.

Later comments, label changes and reassignments keep an active run's owner. A mention after the run ends can start a new run with a new owner; the earliest pending mention determines that owner. Existing runs keep their owner when you unlink your account.

Personal linking also works when Jira writes use a service account. The service account does not become the run owner.

Configure the integration

  • Project routing: each watched project points to a stack, which can contain one or several repositories.
  • Status sync: mapped statuses sync both ways between the Jira ticket and the Gleamrun task. Each Jira status can map to only one task status. Backlog is usually best left unmapped when Jira has only one “To Do” status.
  • Automations: Jira ticket changes and new comments can also trigger a workspace automation. Use conditions such as project, label, status, issue type, assignee, or comment text to narrow when it runs.

What Jira shows

Once Gleamrun picks up a ticket, Jira receives:

  • a pickup comment with a link to the Gleamrun session;
  • status changes based on your mappings;
  • a single pull-request status comment that is updated in place (Gleamrun posts a new one if it can no longer edit the old one; see Jira permissions); and
  • a pull-request link, marked resolved after merge.

Verification evidence

During rollout, verification attachments are available only in enabled workspaces. Gleamrun publishes successful captures from Jira-originated tasks as native Jira attachments, with one current file for each exact verification label and branch. When a capture changes, Gleamrun confirms the new attachment before deleting its recorded older version. It never deletes files added by people based on similar filenames.

Once all current files are confirmed, the status comment links readers to Jira's Attachments section instead of embedding each image. Removing a verification label also removes its Gleamrun-managed Jira attachment.

If Jira disables attachments or the writing account lacks attachment permissions, comments, task launch, and status sync continue. Workspace Settings shows an attachment-sync warning and a retry action. When a service account is configured, all attachment writes use it. They never fall back to the connecting person's account.

Disconnecting the integration can leave copies in Jira. Delete them from Jira if they are no longer needed.

Talk to the agent from Jira

A Jira ticket and its Gleamrun task share one conversation. Once the agent has started, @-mention Gleamrun, picked from Jira's mention list, to give it another instruction. Use Reply on one of its comments to keep the exchange in a thread. Untagged comments, and @Gleamrun typed as plain text, are not sent to the agent.

  • Asked in Jira: the agent's final answer is posted to the ticket. Its working notes are not.
  • Files in a Jira comment: embedded images and linked Jira files in the same @-mention comment are sent with that instruction. Larger images arrive as files. Other ticket attachments are not added to that turn. Each file can be up to 25 MiB, with at most 20 files and 100 MiB total. The agent receives a note when files are skipped.
  • Asked in Gleamrun: the answer stays in Gleamrun unless you ask the agent to update the Jira ticket. It can only comment on the linked issue.
  • Titles: renaming the Jira issue renames the task, and the other way round. If both change at once, Jira's title wins.

If Gleamrun cannot start work on a ticket, it posts the reason there. It suppresses repeats of that comment for about 45 minutes to avoid duplicate messages from Jira retries.

Everyone with browse permission can read the ticket. For billing problems or a Jira connection that needs reauthorization, the comment says only that an admin must investigate. Connection and account details remain in Gleamrun settings, where only workspace members can see them.

Add a service writer to an OAuth connection

This optional writer requires an existing personal OAuth connection. For setup without personal OAuth, use standalone service-account setup.

Jira attributes every comment and status change to an Atlassian account. We recommend a service account so Gleamrun writes as a bot instead of the person who connected Jira.

Using your own account changes trigger behavior
Tickets assigned to you will start agents, and your comments on watched tickets are ignored to prevent Gleamrun from responding to its own writes. Use the label or assignment trigger until a service account is connected.
  1. Create the service account
    In Atlassian Admin to Directory to Service accounts, create an account and give it the Jira User application role.
  2. Create OAuth credentials
    On the service account, choose Create credentials to OAuth 2.0 and add these Classic Jira scopes:
    • read:jira-user
    • read:jira-work
    • write:jira-work
    Save the secret when Atlassian shows it; it cannot be viewed again. Gleamrun does not need read:me or manage:jira-webhook for this service account.
  3. Grant project permissions
    The Jira User application role and OAuth scopes do not by themselves grant the required permissions in every watched project. Grant both the service account and the connecting account Browse Projects, Assignable User, Add Comments, and Edit Own Comments. Gleamrun uses the connecting account if it cannot authenticate the service account. See Jira permissions to check and grant access. The Transition work items and Link work items permissions are optional. Without Transition work items, Gleamrun skips status updates. Without Link work items, it skips pull-request links.
  4. Connect it in Gleamrun
    Under Workspace Settings to Integrations to Jira to Connection to Comments posted as, choose Post comments as a bot and enter the client ID and secret. Gleamrun verifies that the credentials can reach Jira and have the required access in every watched project before saving.
You can add a service account later
After switching accounts, assign new tickets to the service account. Existing tickets are not reassigned automatically. Tickets already in progress get a new status and verification comment from the service account; the earlier comments stay and are no longer updated.

Ticket attachments

When Jira starts agent work, Gleamrun imports supported ticket images and files. Open Attached Files in task details to find them with a From Jira label. The agent receives the imported attachments, including text it can extract from documents.

Attachments on a Jira mention can also reach the agent. If a file cannot be imported, the task instructions report the reason. Check Jira access and file limits before retrying.