Effective communication lies at the heart of successful team management in today’s fast-paced work environment. While Jira provides robust integrations with popular chat tools like Slack, Microsoft Teams, and Google Chat, small companies often lean towards Discord or Telegram.
However, integrating Jira with these platforms requires third-party solutions.
In this blog post, we’ll delve into the advantages and steps of setting up a personalized Jira and Telegram Automation using Jira Automations.
Why Build Your Own Integration?
Third-party integrations may fall short in terms of features and customization, critical factors for effective communication tailored to each team’s unique approach. Jira Automations empower us to personalize our communication processes according to our specific needs.
Integrating Jira with Bitbucket
Requirements
Before proceeding, ensure you have an active Jira Project with access to it’s settings, and a Telegram Account set up. This guide assumes you are using Jira Cloud.
Step 1: Generate a Telegram Bot Token
- Begin by searching for the ”BotFather” account on Telegram.
- Initiate a chat with BotFather
/start
and use the/newbot
command to create a new bot. - Follow the instructions to set a name and username for your bot.
- Once created, BotFather will provide a unique API token for your bot – remember to save it for later use.
Step 2: Create and Configure Your Jira Automation Rule
In your Jira instance navigate to your Project and proceed to “Project settings”, select “Automation” and click on “Create rule.” Now we can configure the three main parts of the Automation to make it work:
Trigger: That will define when the automation should run (e.g., Issue created, Issue transitioned)
Condition (optional): That will filter for us only the issues we need our rule to apply on (eg. Priority = Highest)
Action: “Send web request” That we will now configure with the API token we got in the first step and that will make the magic happen.
- Web request URL:
https://api.telegram.org/YOUR_BOT_TOKEN/sendMessage?chat_id=YOUR_TELEGRAM_CHAT_ID
- HTTP method: POST
- Web request body: Custom data
- Custom data:
{
"disable_web_page_preview": "True",
"parse_mode": "markdown",
"text": "📥{{issue.reporter.displayName}} Has created a {{issue.issueType.name}} [{{issue.key}}](https://YOUR_JIRA_INSTANCE.atlassian.net/browse/{{issue.key}}): {{issue.summary}}"
}
Edit the text field using Jira Smart Values and follow Telegram’s API documentation for parameter adjustments.
Now you can save your Automation by clicking “Turn on rule”.
Step 3: Test and Refine
- Test your automation rule by triggering specified conditions in Jira.
- Verify that Telegram receives notifications as expected.
- Refine your automation rules based on feedback and team requirements.
Benefits of Jira and Telegram Integration
- Cost-Free Solution: Eliminate expenses and dependencies on third-party suppliers.
- Enhanced Collaboration: Streamline team communication by seamlessly integrating Jira notifications into your team’s chosen messaging platform.
- Custom Configurations: Tailor your settings to precisely suit your unique needs.
In conclusion, integrating Jira with the Telegram API unlocks new possibilities for automation and collaboration. Harness the power of these tools to create a more efficient and responsive team management workflow. Try it out and witness the benefits of seamless communication and automation in your Jira projects!
Additional Resources
Stay Tuned!
Discover more valuable insights by staying connected with BLACKLABS. Follow our blog to stay up-to-date with the latest trends and information. If you found this guide helpful, share it with your network on social media. Let’s together spread knowledge and make a difference!