# Bring in work from GitHub, Jira or Slack

Bring in work from GitHub, Jira or Slack when the task already exists there, so an agent can
pick it up without you retyping it. You end with the issue on the board in **Backlog** or
**To Do**, exactly like a ticket you created, and,
if you want, the board's own events flowing back out to a webhook or Slack.

Imports are read only: the board never writes back to Jira, GitHub or Slack.

## Before you begin

Each source turns on with its credentials, set in `~/.rev0/.env` (or the environment) and
read when the board starts. There is no switch in Settings.

| Source | What it needs |
| --- | --- |
| Jira | `REV0_JIRA_URL`, `REV0_JIRA_EMAIL` and `REV0_JIRA_TOKEN` (an Atlassian API token). |
| GitHub | The `gh` CLI, signed in with `gh auth login`. No token in the board. |
| Slack | `REV0_SLACK_TOKEN`, ideally a user token (`xoxp-`) with the history scopes of the channels you import from, plus `users:read` and `files:read`. |

[Configuration](../reference/configuration.md) lists every variable. The **Sources** map in the
Knowledge Base shows which source is connected and which still needs setup; see
[Keep what agents learn](knowledge-base.md#see-where-knowledge-comes-from).

## Import work

1. In the header, open the arrow next to **Create** (**Create or import**). On a narrower
   screen, open **More actions** instead.
2. Under **Import**, pick the source:
   - **JIRA**: type **Issue keys** or a **JQL query**, or tick **Also import issues assigned
     to me**.
   - **Slack**: paste **Message link(s)** (in Slack, a message's **More actions > Copy
     link**). Tick **Import the entire thread** to bring the replies, or **Combine all links
     into one ticket**.
   - **GitHub**: on **By responsibility**, the list loads automatically (review
     requests, comments on your pull requests, mentions). Pick some; or on **Individual
     PRs**, list a repository's open pull requests or paste links.
3. Pick the **Column**: **Backlog** parks it, **To Do** queues it for an agent. It starts on
   the board's default for new tickets, like the create form.
4. Click **Import**.

**Result:** each item lands in that column on the board you are looking at, with a chip for
its source and a timeline line saying where it came from. Jira comments come along as
comments. Importing the same item twice does nothing.

## Hand an import to an agent

An import in **To Do** is claimed by the runner like any ticket. One in **Backlog** waits until
you drag it to **To Do**.

## Let GitHub items start by themselves

A GitHub import can land in **To Do** as a command ticket that prepares the
item (the `prep-github-item` skill, which drafts the review or the reply locally and never
posts). Two things decide it:

- **Import as: Command** in the GitHub import, or the `github_autostart` setting for every
  GitHub import;
- a local clone of the repository, which the ticket then runs in. Without one, the item
  is parked in Backlog and the import says "No local clone found".

Open **Settings > Connections > GitHub**, also linked from the GitHub import dialog.
Enable **Automatically start GitHub imports with a local clone** if you want every import
to queue work. Add a repository mapping with an **owner/repo** match and the local clone
folder on the computer running rev0, then **Save**. The folder picker suggests paths;
it does not clone a repository. A substring or glob such as `acme/*` can match several
repositories, but each mapping points to one existing clone.

A repository with no
mapping is looked for under `REV0_GITHUB_REPOS_ROOT` (as `<root>/<repo>`, then
`<root>/<owner>/<repo>`).

**Result:** new GitHub items for a repository you have a clone of arrive in To Do and start.

## Keep importing on a schedule

Scheduled imports are a Loop built from the **External intake** template (see
[Run work on a schedule](run-loop.md#start-from-a-template)). Give the Loop a schedule, then
point its read step at the source and its field map at that source's items:

- **Jira issues assigned to you**: read `jira` / `assigned_to_me` with `with_comments` on, and
  map `{"title": "summary", "description": "description", "key": "key",
  "external_source": "=jira", "external_key": "key", "external_url": "url",
  "comments": "comments"}`. Clear `command` so they file as plain tasks.
- **Your GitHub responsibilities** (review requests, comments on your pull requests,
  mentions): read `github` / `responsibilities`, and map `{"title": "summary",
  "description": "description", "key": "key", "external_source": "=github",
  "external_key": "key", "external_url": "url", "workdir": "local_clone"}`. An item with no
  local clone is parked in Backlog as a plain task instead of running its command.

The Loop's `status` picks the column: `todo` starts them, `backlog` leaves them for you. An
item already on the board, from an earlier import or any other Loop, is never filed twice.

**Result:** new work shows up on the board without opening the import.

## Send board events to a webhook

1. Open **Settings > Connections > Outbound webhooks**.
2. Tick **Outbound webhooks** and set **Webhook URL** to your https endpoint.
3. Optionally set a **Signing secret**, and **Retries per event** (3 by default).
4. Under **Outbound webhooks: events**, tick the events you want:

   | Event | Sent when | On by default |
   | --- | --- | --- |
   | `ticket.created` | You or an agent create or import a ticket. | Yes |
   | `ticket.status_changed` | A ticket moves column, including every step of a run. | No |
   | `ticket.updated` | A ticket's title, description, priority or tags change. | No |
   | `ticket.plan_submitted` | A plan waits for your review. | Yes |
   | `ticket.permission_requested` | An agent asks for a tool. | Yes |
   | `ticket.merged` | A branch is merged. | Yes |
   | `run.failed` | An agent run fails. | Yes |

5. Click **Save changes**.

**Result:** each event is POSTed to your URL as JSON:

```json
{
  "event": "ticket.plan_submitted",
  "occurred_at": "2026-09-24T11:43:00Z",
  "ticket_id": 42,
  "board_id": 1,
  "data": {
    "ticket": {"id": 42, "title": "...", "status": "pending_action", "type": "task",
               "mode": "spa_plan", "priority": "medium", "board_id": 1,
               "parent_id": null, "branch": "agent/ticket-42", "tags": []}
  }
}
```

`data` holds the event's own fields next to that `ticket` summary. For `ticket.created` that
is `created_by`; a ticket imported from GitHub, Jira or Slack also carries `source`,
`external_key` and `external_url`. Re-importing an issue already on the board sends nothing. The ticket's description
and plan are never sent. Every request carries `X-Kanban-Event` with
the event name. With a signing secret, it also carries
`X-Kanban-Signature: sha256=<hex>`, the HMAC-SHA256 of the exact body with your secret:
compute the same on your side and compare before trusting the event.

A delivery times out after 10 seconds. A timeout, a connection error and a 408, 425, 429 or
5xx answer are retried with a growing wait (up to 30 seconds); any other 4xx fails at once.

## Check what was delivered

1. Open **Settings > Connections > Recent deliveries** (shown while webhooks are on).

**Result:** the last events the board tried to send, newest first: a tick or a cross, the
event, the ticket, the status code your endpoint answered (or the error), the attempts when
there was more than one, and the time it took. The board keeps the last 200.

## Post to Slack

Set `REV0_SLACK_WEBHOOK` to a Slack incoming webhook and every new notification posts there
once, as `[#<id> <title>] <message>`. Muted kinds and muted tickets never post.
`REV0_SLACK_DUE_WEBHOOK` sends only Loop results that are due, to their own channel. A
Loop's Slack step posts through `REV0_SLACK_WEBHOOK` too. See
[Choose how the board notifies you](notifications.md).

## Open GitHub pull requests instead of merging locally

When you land a ticket, choose **Open PR** on the land control instead of merging. When the
ticket's repository is on github.com and `gh` is signed in, integrating the branch then opens a
pull request instead of merging it locally. See
[Review and merge an agent's work](review-and-merge.md).

## If something goes wrong

### JIRA isn't configured on the server

One of `REV0_JIRA_URL`, `REV0_JIRA_EMAIL` or `REV0_JIRA_TOKEN` is missing. Add all three to
`~/.rev0/.env` and restart the board.

### Slack isn't configured on the server

`REV0_SLACK_TOKEN` is missing. Add it to `~/.rev0/.env` and restart the board.

### GitHub isn't configured on the server

Install the `gh` CLI on the board's machine and run `gh auth login`.

### No local clone found

A GitHub item meant to start by itself had no clone to run in, so it was parked in Backlog. Add
a `github_repos` mapping or set `REV0_GITHUB_REPOS_ROOT`, as in
[Let GitHub items start by themselves](#let-github-items-start-by-themselves), then drag the
ticket to To Do.

### My endpoint gets nothing

Check **Recent deliveries**. An empty list means no enabled event fired yet, or **Webhook
URL** is blank: nothing is sent until the box is ticked and a URL is set.

## Related

- [Columns, modes and tags](../reference/columns.md), for what each column means.
- [Choose how the board notifies you](notifications.md), for the bell and Slack.
- [Load a plugin](load-plugin.md), to add an integration the board does not ship.
