Dev Ops · n8n

Create Jira Tickets From a Slack Slash Command in Seconds

Let your team file bugs and tasks without leaving Slack — a custom slash command captures the details and instantly opens a Jira issue, replying with the link.

difficulty Intermediatesetup 40 minresult Anyone can type /ticket in Slack and get a fully-formed Jira issue created and linked back in the same thread.
  1. 1

    Set Up a Webhook Trigger

    Add a Webhook node with method POST. Copy its URL — this is what Slack will call. Slack sends the command text and user info as form-encoded data.

  2. 2

    Register the Slash Command in Slack

    In your Slack app settings, create a slash command /ticket and set its Request URL to the n8n webhook URL. Slack now forwards every use of the command to your workflow.

  3. 3

    Parse the Command Text

    Add a Set node to pull {{$json["body"]["text"]}} as the issue summary and {{$json["body"]["user_name"]}} as the reporter. Optionally split text into a title and description.

  4. 4

    Create the Jira Issue

    Add a Jira node with operation Create Issue. Map the summary and description, set the project key and issue type (Task or Bug). Jira returns the new issue key and URL.

  5. 5

    Reply in Slack

    Use the Respond to Webhook node to return a JSON message like { "text": "Created <url|ISSUE-123>" }. Slack shows this instantly to the user who ran the command.

Frequently asked questions

Can I set priority from the command?

Yes. Parse a keyword like `!high` out of the command text and map it to Jira's priority field in the create step.

Will everyone see the reply?

By default the response is only visible to the user. Return `response_type: in_channel` in the webhook response if you want the whole channel to see it.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.