The moment it happens
Create Jira tickets from Telegram messages
Staff message an IT problem to your Telegram bot, a structured Jira ticket is created, and the bot replies with the ticket number.
- Runs
- The moment it happens
- Apps
- Jira, Telegram
- AI
- Yes, uses the built-in AI allowance
- Access
- bot token; Jira write
Send this to your assistant
Create a ClickRuntime automation: when someone messages our IT Telegram bot, have AI turn the message into a ticket title, description and priority, create it in Jira project IT, and reply with the ticket number.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A logistics company's warehouse staff do not use email or Jira, but they all have Telegram. When a scanner breaks or a printer jams, they call the IT person, who is often busy and loses track of who called about what.
Letting staff message a bot, which creates a proper ticket and replies with a number, gives IT a queue without asking anyone to learn new software. Staff get confirmation, and IT can prioritise.
What you get out of it
Use the app people already have
Staff report problems in Telegram, which they already use every day. No new logins.
Every problem is logged
Each message becomes a ticket. Nothing depends on someone remembering a phone call.
Tidy tickets from short messages
AI turns a quick message into a clear title, description and priority. IT can triage at a glance.
Instant confirmation
The bot replies with the ticket number. The person knows their problem is in the queue.
How it works
What happens, step by step
When someone sends a message to your bot, Telegram passes it to your automation's trigger link.
ClickRuntime checks the sender is on your allowed list.
AI turns the message into a ticket title, description and priority.
A Jira ticket is created in your IT project, noting who reported it.
The bot replies with the ticket number.
Before it runs live
- Connect Jira
- Connect Telegram
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Jira and Telegram steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http, ai
JIRA, SITE = "https://api.atlassian.com/ex/jira/your-cloud-id", "https://acme.atlassian.net/browse/"
adf = lambda text: {"type": "doc", "version": 1, "content": [{"type": "paragraph", "content": [{"type": "text", "text": text}]}]}
def jira(method, path, **kw):
resp = http.request(method, JIRA + path, headers={"Authorization": f"Bearer {credentials.connection('jira', 'work')}", "Accept": "application/json"}, **kw)
return resp.raise_for_status() or (resp.json() if resp.content else None)
CHAT_ID = "123456789"
def telegram(text, chat_id=CHAT_ID):
http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage", json={"chat_id": chat_id, "text": text}).raise_for_status()
ALLOWED = {111111111, 222222222}
SCHEMA = {"type": "object", "properties": {"title": {"type": "string"}, "description": {"type": "string"},
"priority": {"type": "string", "enum": ["High", "Medium", "Low"]}}}
@on_event
def handle(event):
msg = (event.json or {}).get("message") or {}
if not msg.get("text"):
return {"ignored": True}
chat, user = msg["chat"]["id"], msg["from"]
if user["id"] not in ALLOWED:
telegram("Sorry, this bot is only for Acme staff.", chat)
return {"refused": user["id"]}
t = ai.generate(msg["text"][:3000], json_schema=SCHEMA, max_output_tokens=200, system="Turn this IT problem report into a ticket.").json
key = jira("POST", "/rest/api/3/issue", json={"fields": {"project": {"key": "IT"}, "issuetype": {"name": "Task"}, "summary": t["title"][:250],
"priority": {"name": t["priority"]}, "description": adf(f"{t['description']}\n\nReported by {user.get('first_name', '')} via Telegram: {msg['text']}")}})["key"]
telegram(f"Thanks! Logged as {key}. IT will be in touch.", chat)
return {"issue": key}FAQ
Common questions
Can people send voice messages?
How do I stop strangers from using the bot?
Does the person hear when the ticket is closed?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Escalate overdue Jira tasks with a Telegram alert
Each morning overdue Jira tasks are raised to high priority and the manager gets one Telegram message listing them.
See how it worksOpen Jira issues and ping Telegram for provider incidents
When a service you depend on reports a new incident on its status page, a Jira issue is opened and your team gets a Telegram message.
See how it worksGet error alerts with a plain-English explanation
When one of your jobs or systems fails, #ops gets the error and a one-line guess at the cause, without the same error twice in an hour.
See how it worksKeep exploring
Set up “Create Jira tickets from Telegram messages” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.