Inside theSoftware Factory
On deck

Atlassian logoAtlassian's AI flag cleanup: agents that open PRs

Rovo Studio finds stale feature flags in Jira, launches Bitbucket agents that inline final behavior, remove dead code, run checks, and open PRs.

What they built

An agentic pipeline that automates feature-flag cleanup. A Rovo Studio automation rule finds stale cleanup tickets in Jira, then triggers a coding agent in Bitbucket Pipelines for each one. The agent verifies the flag's current state, inlines the final behavior, removes dead code, runs checks, and opens a PR.

How it works

The scheduled rule queries Jira for open flag-cleanup tickets ready for code removal. For each ticket, it triggers a pipeline run passing the ticket key as context. The agent reads the ticket metadata, loads a flag-cleanup skill, and verifies the codebase before making changes—if the flag is already gone or its state differs, it stops. Checks must pass before a PR opens. Engineers review and merge through the standard process.

People

Arthy Vijayaraghavan Senior Engineering Manager

Related patterns

More On deck

We're keeping an eye on Atlassian. On deck companies aren't yet placed on a maturity level. With more detail on their whole setup, they'll get a full profile and a level.
Sources (1)