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.
- 1
Set Up a Webhook Trigger
Add a
Webhooknode with methodPOST. Copy its URL — this is what Slack will call. Slack sends the command text and user info as form-encoded data. - 2
Register the Slash Command in Slack
In your Slack app settings, create a slash command
/ticketand set its Request URL to the n8n webhook URL. Slack now forwards every use of the command to your workflow. - 3
Parse the Command Text
Add a
Setnode 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
Create the Jira Issue
Add a
Jiranode with operationCreate Issue. Map the summary and description, set the project key and issue type (TaskorBug). Jira returns the new issue key and URL. - 5
Reply in Slack
Use the
Respond to Webhooknode 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.