Weekend Productivity Challenge: Backlog Task Prioritizer
A serverless bot that scans my Backlog issues every morning, scores them by urgency × impact with Amazon Bedrock (Nova 2 Lite), and posts my top 5 priorities—each with a concrete next action—to chat.
Vision & What the App Does
I manage my work in Backlog , Nulab's project and issue-tracking SaaS.
It is good at storing work: issues, due dates, assignees, priorities.
Nulab recently launched Nulab Flowbase as well, an AI workflow-automation tool that turns repetitive team processes into structured, auto-executing workflows and shows where they stall.
Between the two, a lot of the process side of getting work done is now covered.
But there is a gap neither tool closes for me personally.
Flowbase systematizes team workflows. Backlog holds everything.
Neither answers the question I actually ask every morning: of all my open issues, which few should I do first today, and what is the next step for each?
That daily triage is still manual, and it takes real mental effort.
When the backlog is long, the important but quiet items slowly sink to the bottom.
Building small tools for things Backlog does not cover officially is a bit of a habit for me.
I collect them in a personal portal, Backlog Tools Portal .
Backlog Task Prioritizer is the latest one, and something I could finish in a weekend: a serverless bot that does the triage for me.
Every weekday at 08:00 JST it:
- Fetches my open issues from Backlog, limited to those due within the next week (overdue included).
- Computes the date signals (
days_until_due,days_since_updated) in Python. I deliberately do not let the LLM do date arithmetic.
- Asks Amazon Bedrock (Nova 2 Lite) to score each issue by urgency (1–5) and impact (1–5), and to write a one-line reason and a concrete next action in my chosen language.
- Posts the top 5, with issue links, scores, reasons, and next actions, to my chat tool.
The result is a 10-second read each morning that tells me where to start.
It does not replace Backlog or Flowbase. It is a thin personal layer on top of them.

The morning digest as it arrives in chat. Each issue links back to Backlog, with a score, a one-line reason, and a next action.
How You Built It
I wrote a spec (requirements / design / tasks) and reviewed it before writing any code, which caught a few problems early.
A few decisions shaped the result:
- Keep the LLM's job narrow. I project only the fields that matter into a small structure, truncate long descriptions, and compute all dates in Python. The model reasons about priority, not about calendars. That keeps token cost and output variance down.
- Use a due-date window instead of paginating everything. Filtering server-side with Backlog's
dueDateUntil = today + 7dkeeps the result set small and focuses the digest on this week.
- Degrade gracefully. If Bedrock returns something I cannot parse, the app retries once, then falls back to posting an unscored list, so I still get a digest.
- Support several channels from one model. Slack (Block Kit), Discord (embeds), and Google Chat (cardsV2) share one channel-agnostic report. If one channel fails, the others still go out.
The hardest bugs were AWS-specific, and they became the lessons below.
Everything is defined as infrastructure-as-code with AWS SAM and deploys with a single
sam deploy --guided .
The codebase has 72 unit tests (Backlog, Bedrock, notifiers, i18n, and dates are all mocked) and is ruff-clean.A
--dry-run mode runs the whole pipeline locally and prints to stdout instead of posting.
That made iterating, and capturing these screenshots, easy:python -m src.handler --dry-run , rendering the digest in English.$ python -m src.handler --dry-run
============================================================ Today's Top 5 Priorities============================================================
#1 [PRJ_SAMPLE-1] [Step 1] Getting started with projects URL: https:///{BACKLOG_URL}/view/PRJ_SAMPLE-1 Score: 8 (urgency:4 × impact:2) Reason: High priority and due very soon Next Action: Complete the getting started steps for projects
#2 [PRJ_SAMPLE-2] [Step 2] Adding issues URL: https:///{BACKLOG_URL}/view/PRJ_SAMPLE-2 Score: 6 (urgency:3 × impact:2) Reason: Due very soon but normal priority Next Action: Add necessary issues to the project
#3 [PRJ_SAMPLE-3] [Step 3] Change issue status URL: https:///{BACKLOG_URL}/view/PRJ_SAMPLE-3 Score: 6 (urgency:3 × impact:2) Reason: Due very soon but normal priority Next Action: Change the status of relevant issues
#4 [PRJ_SAMPLE-4] [Step 4] Manage issues with checklists URL: https:///{BACKLOG_URL}/view/PRJ_SAMPLE-4 Score: 4 (urgency:2 × impact:2) Reason: Due in a week but normal priority Next Action: Add checklists to manage issues effectively
#5 [PRJ_SAMPLE-5] [Step 5] Invite team members to your project URL: https://{BACKLOG_URL}/view/PRJ_SAMPLE-5 Score: 4 (urgency:2 × impact:2) Reason: Due in a week but normal priority Next Action: Invite team members to the project
Total open issues: 7 Generated at 2026-07-12T12:37:04+09:00============================================================AWS Services Used / Architecture Overview
- AWS Lambda (Python 3.13): the whole application.
- Amazon EventBridge Scheduler: the weekday 08:00 JST trigger.
- Amazon Bedrock (Nova 2 Lite, Converse API): the AI scoring core.
- AWS Systems Manager Parameter Store (SecureString): Backlog API key and webhook URLs.
- Amazon CloudWatch Logs: structured JSON logs with 30-day retention.
The Lambda reads secrets from SSM, fetches and projects issues from Backlog, scores them through Bedrock, and sends the report to the configured chat channels.
For a single user running on weekdays only, the whole thing costs under a dollar a month and stays within the AWS Free Tier.
Deployed via AWS SAM: the Lambda function, its EventBridge Scheduler trigger, and the CloudWatch log group in the AWS console.
What You Learned
A few things were not obvious until they bit me:
- Nova 2 Lite has no in-region endpoint. Passing the bare model ID (
amazon.nova-2-lite-v1:0) throws aValidationException. You have to invoke it through a cross-region inference profile (us.amazon.nova-2-lite-v1:0), and the IAM policy needs the profile plus the underlying foundation-model ARNs in each destination region.
- Reasoning models change how you parse output. Nova 2 Lite can emit a
reasoningContentblock before the answer, so assumingcontent[0].textis fragile. You scan for the text block and strip any fences beforejson.loads.
- EventBridge Scheduler needs a target IAM role, not a resource-based policy like EventBridge Rules. Miss it and the schedule silently never fires.
-
AWS_REGIONis reserved inside Lambda, so I pass the region asAWS_REGION_OVERRIDE.
- SAM can create circular dependencies between a function and its explicit log group. Using
!SubARNs breaks the cycle.
The bigger lesson: you can get a long way in a weekend by letting the LLM handle judgment while keeping the deterministic parts (dates, filtering, secrets) in code.
Link to Repo
The README (English and Japanese) covers setup, an architecture diagram, the required IAM permissions, a cost estimate, and how to add languages or notifiers.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article