On a schedule
Email a weekly sprint report to stakeholders
Every Friday stakeholders get an email with the sprint's progress: what is done, in progress and at risk, with a short written summary.
- Runs
- On a schedule
- Apps
- Gmail, Jira
- AI
- Optional
- Access
- Jira browse; gmail.send
Send this to your assistant
Create a ClickRuntime automation: every Friday at 3, collect the open sprint's tickets in Jira project ENG, count done, in progress and to do, list blocked items, have AI write a short summary, and email it to stakeholders@acme.example.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A delivery lead spends Friday afternoons writing a sprint update for the client and senior managers, copying numbers from Jira into an email and explaining what slipped. It is useful, but it takes an hour every week.
A report built from the sprint itself, with the numbers and a written summary, arrives on time every week. The lead adds a sentence of context if needed, and stakeholders get the same clear update without having to log in to Jira.
What you get out of it
Stakeholders stay informed
A regular email answers 'how is it going?' before anyone asks. Fewer interruptions for the team.
Numbers straight from Jira
Counts of done, in progress and to do come from the sprint itself. No copying mistakes.
Risks are named
Blocked and overdue tickets are listed. Problems are raised early rather than discovered at the review.
Readable by non-engineers
With AI turned on, a few sentences explain the progress in plain words. Clients and executives understand it at a glance.
How it works
What happens, step by step
Every Friday, ClickRuntime collects the tickets in your project's open sprint.
It counts tickets by status and picks out blocked and overdue ones.
If you turn on AI, it writes a short summary of progress and risks.
The report is emailed from your Gmail to your stakeholders.
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
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
- Run it at a different time, more or less often, or only on weekdays
- 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 Gmail and Jira steps into one automation
Under the hood
The code that runs this automation
import base64
from email.mime.text import MIMEText
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from collections import Counter
from datetime import date
from clickruntime import on_trigger, 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)
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()
TO = "stakeholders@acme.example"
@on_trigger
def run(event):
issues = jira("POST", "/rest/api/3/search/jql", json={"jql": "project = ENG AND sprint in openSprints()",
"fields": ["summary", "status", "duedate", "flagged"], "maxResults": 200})["issues"]
counts = Counter(i["fields"]["status"]["statusCategory"]["name"] for i in issues)
risky = [f"{i['key']} {i['fields']['summary']}" for i in issues
if i["fields"]["status"]["name"] == "Blocked" or (i["fields"].get("duedate") and i["fields"]["status"]["statusCategory"]["key"] != "done"
and i["fields"]["duedate"] < date.today().isoformat())]
body = (f"Done: {counts.get('Done', 0)}\nIn progress: {counts.get('In Progress', 0)}\nTo do: {counts.get('To Do', 0)}\n\n"
"At risk:\n" + ("\n".join(risky) or "none"))
try:
body = ai.generate(body, system="Write a 3-sentence plain-language sprint update for stakeholders.", max_output_tokens=200).text + "\n\n" + body
except (ai.AINotIncluded, ai.AILimitReached):
pass
send(TO, "Sprint update", body)
return dict(counts)FAQ
Common questions
Who receives the email?
Can it send a daily digest instead?
Does it work for Kanban boards without sprints?
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
Email assignees and leads about overdue Jira tickets
Each morning, people with overdue or blocked tickets get one email listing them, with their lead copied, and nobody is emailed about the same ticket twice in a row.
See how it worksRun daily checks that open Jira tickets when something fails
Each day your SSL certificates and key endpoints are checked, and any new problem opens a Jira ticket and sends you an email.
See how it worksTurn vendor security advisories into Jira tickets
New security advisories from the vendors you rely on become Jira tickets, and you get an email for each one.
See how it worksKeep exploring
Set up “Email a weekly sprint report to stakeholders” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.