Skip to main content

Add a bug to Linear via Slack command

Workflow preview

Workflow preview
100%
Add a bug to Linear via Slack command preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Use Case When building a product it's important to discover and eliminate bugs as quickly as possible. Since we're using our product at n8n a lot, we wanted to make it as easy as possible for every...

Best for

  • Project Management automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Niklas Hatje.

Original n8n.io source

1.1 Workflow description

Title
Add a bug to Linear via Slack command
Workflow name
Add a bug to Linear via Slack command

Use Case

When building a product it's important to discover and eliminate bugs as quickly as possible. Since we're using our product at n8n a lot, we wanted to make it as easy as possible for everyone to add bugs with the needed level of detail. That's why we built this workflow that allows everyone to add bugs to our Linear account easily directly from Slack

What this workflow does

This workflow waits for a webhook call within Slack, that gets fired when users use the /bug command on a bot that you will create as part of this template. It then adds the bug to Linear using a pre-defined description and a defined label. It then notifies the user about the newly added bug as you can see below:

How to create your Slack bot

  1. Visit https://api.slack.com/apps, click on New App and choose a name and workspace.
  2. Click on OAuth & Permissions and scroll down to Scopes -> Bot token Scopes
  3. Add the chat:write scope
  4. Head over to Slash Commands and click on Create New Command
  5. Use /bug as the command
  6. Copy the test URL from the Webhook node into Request URL
  7. Add whatever feels best to the description and usage hint
  8. Go to Install app and click install

Setup

  1. Configure your Slack bot using the sticky to the left
  2. Fill the Set me up node. You can find the IDs easily using the Helper nodes section
  3. Make sure to exchange the Request URL in your Slack with the Prod URL of the Webhook node before activating this workflow

How to adjust it to your needs

  • Add zero, one, two or many labels when creating the new ticket
  • Change the Slack message according to your needs
  • Change the default description for a new bug ticket
  • Rename the Slack command as it works best for you

How to enhance this workflow

At n8n we use this workflow in combination with some others. E.g. we have the following things on top:

  • We're using AI to classify the bugs and move them to the right team as soon as they get added to Linear (see this template)
  • We also added other commands like /pain and /idea that allow us to submit other things to Notion. You can see the workflow for that here.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Bug Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1

Block 2 - Hidden message to add bug details

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 3 - Create linear issue

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 4 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Set me up

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 7 - Get all linear teams

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 8 - Get linear labels for a team

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 9 - Set team ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Add a bug to Linear via Slack command
Complexity intermediate
Nodes 10
Categories Project Management
Author Niklas Hatje
Published 29 Feb 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2153/2153.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Add a bug to Linear via Slack command do?

Use Case When building a product it's important to discover and eliminate bugs as quickly as possible. Since we're using our product at n8n a lot, we wanted to make it as easy as possible for every...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Project Management use case.