๐ Send Jira task notifications to Telegram user via Bot
โก 2,357 views ยท ๐ Project Management
Description
What we wanna do?
Letโs look at the concern. In my experience, some developers donโt check their Jira board to find out whether there are new updates on the issues or not or if some Issues need to be addressed as soon as possible. So, the developer or anyone else in other fields needs to be informed about the task as soon as possible, too. One way to send this immediate notification is through the Telegram Bot.
Setup Guide
so, first of all, you need to register a Telegram Bot in your account and obtain its token, so that weโll be able to send Telegram messages by using this token through our bot; after getting your telegram bot token
- go to the workflow and click on one of the telegram nodes
- select the telegram credential or create one through the Credential to connect with field
- and put the token in the token in the Access Token field.
Ok, youโre done with the Telegram Side setup.
then you need the Jira accounts (team users) accountId and also their telegram chatId for the telegram account node so that it can find the corresponding telegram user from the assignee of the issue, put this data as following guide comments in the telegram account node.
Now we go for the Jira side setup, you need to setup some automation rules as your needs.
- go to the Jira settings and Global automation section, click on the Create Rule button
- select the Issue Created trigger type in the When step
- add a Send webhook request action, after selecting it youโll see its settings
- go back to workflow and from the jira-webhook node copy the Production URL
- paste it in the Web request URL field in the Jira action setting
- then set the HTTP method field on POST
- set Web request body on Issue Data (Automation format)
- in the header section, add a new header with the name type and value created for the creation event.
OK, the Jira side also is done! Now Itโs time to test!
If youโve put your Jira accountId and telegram chatId in the telegram account node and of course started the telegram bot, after creating an Issue that is assigned to you, the creation notif will send to you in telegram!
๐ Nodes Used
Webhook, Telegram
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File