Slack to Jira Issue Creation with File Attachments - n8n Workflow

Use this robust n8n workflow to automate issue reporting directly from Slack messages to Jira, including complex text parsing, priority mapping, and secure file attachment handling. A perfect n8n template for DevOps and project teams.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

• Project Managers and Scrum Masters needing seamless bug reporting.
• DevOps teams automating ticket creation from incident channels.
• Technical content writers looking for advanced n8n templates.
• Anyone seeking a ready-to-use n8n workflow solution for Slack and Jira integration.

Overview

Managing bug reports and feature requests often starts chaos in communication tools like Slack. This sophisticated n8n workflow solves this by enforcing structure and automating data transfer. When a message containing structured data (Title, Description, Priority) is posted to a monitored Slack channel, this n8n automation instantly processes it.

It features an advanced custom n8n node for parsing complex rich text and uses dynamic logic to handle file attachments, downloading them securely from Slack and uploading them directly to the corresponding Jira issue. The result is a fully automated, traceable issue reporting system, significantly reducing manual data entry and ensuring no critical information or file is lost between platforms. This is one of the most powerful pre-built n8n templates for Slack-Jira integration.

How it Works

This n8n workflow is initiated by an active n8n trigger and follows a multi-step execution path:


  1. Trigger: The Slack Trigger serves as the initial n8n trigger, monitoring a specific channel for new messages.

  2. Filter: An If n8n node (checking message) filters incoming messages, ensuring the n8n workflow only proceeds if the message text contains the required 'title' keyword, indicating a formal report.

  3. Parsing & Formatting: A Code n8n node (Parse Message into Jira Format) uses advanced regular expressions and custom logic to extract the issue Title, Description, Priority, and Type from the Slack message. It cleans the text, maps priorities (e.g., 'high' to Jira's 'Highest' ID), and prepares private download URLs for any attached files.

  4. Issue Creation: The Create Jira Issue n8n node uses the parsed data to generate a new issue in the specified Jira project, obtaining the unique Jira Issue Key.

  5. Attachment Check: The Check Attachments n8n node determines if files are present. If zero files exist, the n8n workflow skips the download steps and sends the confirmation.

  6. File Preparation: If attachments are found, the Prepare Files for Processing n8n node combines the Jira Issue Key with the file URLs.

  7. Batch Processing: The Split Files into Batches n8n node ensures that each file is handled individually, allowing the n8n workflow to correctly manage multiple attachments.

  8. Secure Download: Two HTTP Request n8n nodes (Get File Info and Download Attachment) securely fetch the binary file data from Slack using the necessary bearer token authentication.

  9. Jira Upload: The Upload Attachment to Jira n8n node attaches the downloaded binary file to the specific Jira Issue Key.

  10. Confirmation: The Reply to Channel On Slack n8n node executes after the Jira issue is created (and after all file uploads are complete, if applicable), posting a confirmation message back to Slack with the direct link and key to the new ticket.

Installation Guide

To deploy this n8n template, follow these steps:


  1. Import: Copy the provided JSON into your n8n instance using the 'New' menu -> 'Import from JSON'.

  2. Slack Credentials: You will need two sets of Slack credentials:

One for the Slack Trigger (to listen for events).
One for the Reply to Channel On Slack (to post confirmation messages).
Ensure the Slack API credentials used for the HTTP Request nodes (Download Attachment and Get File Info) have the necessary permissions (e.g., files:read, files:write, channels:read) to access private files.

  1. Jira Credentials: Configure the Jira Software Cloud Api credential used by the Create Jira Issue and Upload Attachment to Jira n8n nodes.

  2. Configuration:

In the Slack Trigger n8n node, specify the Channel ID where issue reports will be posted.
In the Create Jira Issue n8n node, update the Project ID, Issue Type, and Assignee/Reporter fields to match your Jira environment.
In the Reply to Channel On Slack n8n node, update the target channel ID to where the success notification should be sent.

  1. Activate: Save the n8n workflow and set the status to 'Active'. The Slack Trigger is now listening for incoming reports.

Node Details

Slack Trigger (n8n trigger):
Function: Starts the n8n workflow upon a new message event in a specific Slack channel.
Key Configuration: Trigger set to 'message'. Channel ID is hardcoded (C09CVLMSF3R).
checking message (If n8n node):
Function: A fundamental flow control n8n node that ensures the text contains 'title' before proceeding to complex parsing.
Parse Message into Jira Format (Code n8n node):
Function: The core logic n8n node. It extracts structured data (Title, Description, Priority, Type) using complex regex, cleans text, standardizes priority mapping to Jira IDs, and compiles file URLs.
Create Jira Issue (Jira n8n node):
Function: Creates the new ticket in Jira, populating the summary and description using output from the custom code n8n node.
Prepare Files for Processing (Code n8n node):
Function: If files exist, this n8n node prepares an item for each file, bundling the file URL, file name, and the newly generated jiraIssueKey.
Split Files into Batches (Split In Batches n8n node):
Function: Crucial for handling multiple attachments, this n8n node processes each file item sequentially.
Download Attachment (HTTP Request n8n node):
Function: Securely downloads the private file content from Slack using the private URL and Slack API Bearer token, storing the data as binary for the next step.
Upload Attachment to Jira (Jira n8n node):
Function: Uses the binary data from the Download Attachment n8n node and the Jira Issue Key to upload the file to the issue.
Reply to Channel On Slack (Slack n8n node):
* Function: Provides a confirmation loop end, notifying the reporter channel with the Jira ticket link and key, ensuring immediate feedback on the successful n8n workflow execution.

Related n8n Workflows

Free

Nodes: 8 Nodes
Updated: December 26 2025
View all
Created by

Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.

Featured*