Skip to content

Every 30 minutes

Email customers when the bug they reported is fixed

When a Jira bug is resolved, the customers who reported it get a short email from you saying it is fixed.

Runs
Every 30 minutes
Apps
Gmail, Jira
AI
Not needed
Access
Jira browse; gmail.send

Send this to your assistant

Create a ClickRuntime automation: every 30 minutes, find Jira bugs in SUP resolved since the last check that have a Customer email field, and email each customer from my Gmail that it's fixed.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A software company's support team promises to let customers know when their bug is fixed. In practice the engineer resolves the ticket, nobody tells support, and the customer finds out weeks later, or never.

Emailing the reporter as soon as the ticket is resolved keeps that promise every time. Customers feel listened to, and support stops hunting through resolved tickets to see who needs an update.

What you get out of it

  • Promises are kept

    Every customer who reported a bug hears when it is fixed. Trust grows with each email.

  • No manual follow-up

    Support does not need to watch resolved tickets. The email goes out as soon as engineering closes the ticket.

  • Sent from your address

    The email comes from your Gmail, so customers can reply directly if something is still wrong.

  • Each customer is told once

    Tickets already handled are remembered. Nobody gets the same email twice.

How it works

What happens, step by step

  1. Every 30 minutes, ClickRuntime looks for bugs in your Jira project that were resolved since the last check.

  2. It reads the customer email field on each ticket.

  3. Each customer gets a short email from your Gmail saying the bug is fixed.

  4. It remembers when it last checked, so nobody is emailed twice.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Connect Jira

What you get

RunsEvery 30 minutes
Email customers when the bug they reported is fixedtoday, 9:00Succeeded
Email · Fixed: Export ignores date filterGood news: the problem you reported, "Export ignores date filter", has been fixed.

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Gmail and Jira steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
tell_customers_when_their_bug_is_fixed.pyexample
import base64
from email.mime.text import MIMEText
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from datetime import datetime, timezone
from clickruntime import on_trigger, state_initializer, credentials, http, state, report_fetched

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)
gmail = lambda: build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).users()

def send(to, subject, body, cc=None):
    msg = MIMEText(body)
    msg["To"], msg["Subject"] = to, subject
    if cc: msg["Cc"] = cc
    gmail().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()

EMAIL_FIELD = "customfield_10050"

@state_initializer
def init():
    state.set("since", datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M"))

@on_trigger
def run(event):
    since = state.get("since")
    now = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M")
    issues = jira("POST", "/rest/api/3/search/jql", json={"jql": f'project = SUP AND issuetype = Bug AND resolved >= "{since}" AND "{EMAIL_FIELD}" is not EMPTY',
                  "fields": ["summary", EMAIL_FIELD], "maxResults": 100})["issues"]
    report_fetched(len(issues))
    if not issues:
        return {"emailed": 0}
    emails = [(e.strip(), i["fields"]["summary"]) for i in issues for e in (i["fields"][EMAIL_FIELD] or "").split(",")]
    for email, title in emails:
        send(email, f"Fixed: {title}", f"Hi,\n\nGood news: the problem you reported, \"{title}\", has been fixed. Reply here if anything still looks wrong.\n\nThe Acme team")
    state.set("since", now)
    return {"emailed": len(emails)}

FAQ

Common questions

How does it know who reported the bug?
From a field on the Jira ticket, such as Customer email, which your support team or form fills in when the ticket is created.
What if several customers reported the same bug?
Put all their addresses in the field, separated by commas, and each gets the email.
Can I change the wording?
Yes. Give it your text with placeholders for the customer's name and the ticket title.
What permissions does it need?
Jira browse; gmail.send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Email customers when the bug they reported is fixed” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.