Skip to content
Юрий Потапов edited this page Dec 15, 2023 · 2 revisions

Jira Notifier

Go

If you, like me, have cluttered mail from various notifications. This simple solution will allow you to receive notifications about new tasks assigned to you directly in your Telegram.

Setup

Creating .env file like this:

TELEGRAM_TOKEN=BotToken
DATABASE_NAME=bot.db
JIRA_ADDRESS=https://jira.example.ru
ADMIN_CHAT_ID=000000000

You can also determine the data update time in handlers using variables: TELEGRAM_UPDATE_INTERVAL_SEC, JIRA_UPDATE_INTERVAL_MIN

Creating Telegram Bot

You can create a Telegram bot and give away a token using @BotFather

Install dependencies

$ go get

Run dev

$ go run main.go

Build application

$ go build

Getting with bot

During the first dialogue with the bot, it will ask you to send a personal token. You can take it in your Jira profile settings.