Skip to content

Create and find issues from Slack messages and /orbit commands #187

Open

Description

@imshashank

Current status, September 22

This issue also owns the /orbit command scope absorbed from closed #188: new, identifier lookup, search, mine and help. Reuse one modal and interactivity boundary, with ephemeral permission-filtered replies and a refusal for unmapped users. Coordinate the intake destination with #197 rather than building a second queue.

Original requirements

Somebody reports a bug in a Slack channel. Today, turning that into an issue means opening Orbit, creating an issue, retyping what they said, and pasting a link back. That friction is why bugs reported in Slack stay in Slack.

What to build

A Slack message shortcut, "Create Orbit issue", available from the overflow menu on any message.

The flow:

  1. Someone picks the shortcut on a message.
  2. A modal opens, pre-filled with the message text as the description and a sensible first line as the title.
  3. The modal lets them pick team, and optionally assignee, priority, labels, project and sprint. Team is required because an issue cannot exist without one. Everything else has a default.
  4. Submitting creates the issue and posts a threaded reply on the original message with the identifier and a link.
  5. The permanent link back to the Slack message is stored on the issue, so the conversation that produced it is one click away later.

The parts that need thought

Who is creating it. The Slack user has to map to an Orbit user, and that person's role decides whether they may create in that team. Orbit already matches accounts by email through users:read.email, so the lookup exists. What does not exist is the answer to what happens when there is no match. Two options, and we would take the first: refuse with an ephemeral message explaining how to link the account, with a link to do it. Silently creating issues attributed to a shared bot account is worse, because it destroys attribution and it lets anyone in the Slack workspace write to Orbit.

Three second acknowledgement. Slack requires a response within three seconds or it shows an error. Open the modal immediately, then do the work. Do not await the database before acknowledging.

Storing the backlink. git_link in packages/db/src/schema/comms.ts is the existing pattern for "this issue is connected to something outside Orbit", but it is shaped for git providers, with repository, branch and merged columns. Do not force a Slack permalink into it. Either generalise it or add a small issue_source table. Say which you chose and why, because this decision affects the customer request and intake work later.

Threading. The reply goes in a thread on the original message, not in the channel. Channels are noisy enough.

Files

  • apps/web/src/app/api/webhooks/slack/route.ts currently handles url_verification and link_shared. Shortcuts arrive on the interactivity endpoint, which does not exist yet and may want its own route.
  • packages/services/src/ for the Slack client. There is already a SlackClient with an unfurl method to extend.
  • packages/core/src/work/ for the issue creation call. Do not write to Postgres from the Slack handler.
  • packages/shared/src/validators/ for the payload schema. Slack payloads are untrusted input and get parsed with Zod like everything else.

Tests

apps/web/tests/app/api/webhooks/slack/route.test.ts already exists and is the place to start. Cover: a valid shortcut from a mapped user creates an issue, an unmapped user gets a refusal and creates nothing, and an invalid signature is rejected before any parsing.

Activity

  1. added this to the Slack, properly milestone on Aug 8, 2026
  2. added
    enhancement
    help wanted
    p1 high
    area: integrations
    on Aug 8, 2026
  3. moved this to Backlog in Orbit roadmapon Aug 8, 2026
  4. added
    size: large
    points: 8
    schema change
    on Aug 8, 2026
  5. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    Absorbing #188: this issue now covers the message shortcut and the /orbit command together, since they share the modal, the interactivity route and the mapping refusal. The subcommand list from #188: new <title> opens the same modal pre-filled, <IDENTIFIER> posts an ephemeral summary with a share button, search <text>, mine, help. Ephemeral by default, three-second acknowledgement, unmapped users get the refusal and no data.

  6. changed the title [-]Create an Orbit issue from a Slack message[/-] [+]Create and find issues from Slack messages and /orbit commands[/+] on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: integrationsenhancementhelp wantedp1 highpoints: 8schema changesize: large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions