Automate Jira Notifications to Telegram with n8n Workflow

This detailed guide shows how to automate Jira issue notifications to Telegram using n8n. Save hours by instantly sending updates, creation alerts, and assignment notifications to the right Telegram users, improving team communication and tracking.
code
if
switch
+2
Workflow Identifier: 1547
NODES in Use: Code, If, Switch, Telegram, Webhook

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow listens for Jira issue events, like when an issue is created, updated, or assigned to someone.
It looks up who the Jira assignee is and checks if they have a Telegram account linked.
If yes, it sends a notification message straight to their Telegram chat.
The messages change a bit depending on the type of Jira event, including info about the project, issue key, title, description, and creation time.
If no Telegram account is linked, no message is sent.
This helps teams get instant, clear updates in Telegram without checking Jira repeatedly.


Tools and Services Used

  • Jira Webhook: Sends JSON event data when an issue changes.
  • n8n Workflow: Orchestrates webhook reception, data checking, and notifications.
  • Telegram Bot API: Sends messages to users via Telegram chats.
  • Header Authentication: Secures Jira webhook endpoint.
  • Code Node in n8n: Maps Jira user IDs to Telegram chat IDs.


How this Workflow Works (Input → Process → Output)

Input

  • Jira webhook sends an event POST request when issue changes happen.
  • The request contains issue details, the event type, and assignee information.

Processing Steps

  • Webhook node captures the incoming webhook. It checks authentication and receives data.
  • If node (check issue body, assignee and hook type) validates data presence. Only proceed if issue data and assignee exist.
  • Code node (telegram account) runs JavaScript to get the Jira assignee’s accountId from the webhook JSON. It looks up this accountId in a mapping object to find the Telegram chat ID.
  • const accountId = $('jira-webhook').first().json.body.fields.assignee?.accountId;
    
    const telegramAccounts = {
      "[jira account id]": 00000000, // telegram chat id
    };
    
    const telegramChatId = telegramAccounts[accountId];
    
    return [{telegramChatId}];
    
  • If node (check tg account exists) checks if telegramChatId exists. Stops workflow if no Telegram ID found.
  • Switch node (check type) routes work based on event type header. Cases for “created”, “updated”, and “change-assignee”.
  • Corresponding Telegram nodes send formatted messages for each event type.

Output

  • Telegram messages sent to the right user with issue details.
  • No messages sent if assignee does not have Telegram linked.


Beginner step-by-step: How to Use This Workflow in n8n

Importing the Workflow

  1. Download the workflow file using the Download button on this page.
  2. In the n8n editor, click the menu and choose “Import from File”.
  3. Select the downloaded workflow file and import it.

Configuring Credentials

  1. Add your Jira webhook authentication credentials in the existing header authentication node.
  2. Put your Telegram bot API token into all Telegram nodes.

Updating IDs and Mappings

  1. Open the telegram account code node.
  2. Replace placeholder Jira account IDs and Telegram chat IDs with actual values.
  3. Modify message templates in Telegram nodes if needed.

Testing and Activating

  1. Trigger Jira events like creating, updating, or re-assigning an issue.
  2. Check if notifications arrive in Telegram chats accordingly.
  3. If working as expected, set the workflow to “Active” in n8n to run continually.

Following these steps, users get real notifications in Telegram without building the workflow from scratch.
For running on self-hosted servers, refer to self-host n8n resources for extra help.


Customization Ideas

  • Expand the telegram account code node mapping to add more Jira accounts and their Telegram chat IDs.
  • Change the Telegram message templates to add more issue details or different wording.
  • Add more Jira webhook event types to the check type switch node to send messages for comments or issue closes.
  • Copy Telegram notification nodes and configure similar nodes for Slack or email alerts for multi-channel messages.


Troubleshooting

“Telegram chat ID is undefined”

The Jira assignee’s accountId is not found in the telegramAccounts mapping of the telegram account code node.
Update the code node with the correct Jira and Telegram IDs and test again.

“Webhook 401 Unauthorized”

This happens when the Jira webhook does not send the right Header Authentication credentials.
Make sure the HTTP Header Auth node in n8n matches credentials expected by Jira.

“No notification received on Telegram”

The Telegram chat ID check probably failed or the Telegram bot token is invalid.
Verify the Telegram bot token and chat IDs in n8n. Confirm the bot can message the user.


Pre-Production Checklist

  • Confirm Webhook URL and Header Authentication credentials match exactly in Jira and n8n.
  • Test Jira webhook triggers for creating, updating, and assigning issues.
  • Check Telegram bot credentials in n8n are valid.
  • Ensure all Jira assignees needing notifications are in the telegramAccounts mapping.
  • Run the workflow in test mode and check logs.


Deployment Guide

After testing, activate the workflow in n8n by toggling it to “Active” and saving.
The webhook listens for Jira events continuously.
Watch workflow run history for errors or missed events.
Optionally, set up alerts for node failures.
Ensure the Telegram bot and Jira webhook respect rate limits.
Update the user mapping as team members change.


Summary

✓ The workflow sends real-time Jira updates to Telegram users directly.
✓ It filters for only assigned users with Telegram linked.
✓ Saves time by removing manual Jira checks and email overload.
✓ Easy to import and configure for any n8n user.
✓ Provides clear, role-specific notifications improving team communication.


Frequently Asked Questions

The workflow uses a code node with a mapping object that links Jira account IDs to Telegram chat IDs. It looks up the assignee’s accountId and finds the corresponding Telegram chat ID.
After importing, add Jira webhook authentication credentials, Telegram bot API token, update Jira account and Telegram chat ID mappings in the code node, and test the workflow before activating it.
Notifications might fail if the Jira assignee has no Telegram chat ID mapping, the Telegram bot token is invalid, or the bot is not authorized to message the chat ID.
A 401 Unauthorized error happens if the Jira webhook request does not include the correct header authentication credentials expected by the n8n webhook node.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free