An Atlassian team built a mostly hands-off AI workflow to automate feature flag cleanup using Rovo Dev, repo-specific saved prompts, Jira Automation, and a queue system. Generic AI prompts failed because they lacked codebase-specific context, so the team created tailored cleanup commands encoding their flag framework, class names, test patterns, and branching conventions. A self-improvement loop—reviewing failed PRs and updating the prompt—raised the success rate from 5/9 to 8/9 PRs requiring no manual edits. Jira Automation triggers Rovo Dev when a ticket is labeled, automatically creating PRs. A Jira-driven queue runs hourly, processing one cleanup at a time to avoid merge conflicts. Results: 29 of 31 flags cleaned without intervention, 12 flags cleaned in two days (85% velocity boost), and a reusable pattern applicable to other repetitive engineering tasks.

9m read timeFrom atlassian.com
Post cover image
Table of contents
ProblemThe first iteration

Sort: