Feature flags with flags.gg
Mark a ticket as needing a feature flag and TrackLin.es keeps its flag in flags.gg in step with the board: made when work starts, promoted through your environments as the ticket moves, and cleaned up once it’s live. Flags never turn on by themselves: you switch them on, from the ticket or in flags.gg.
Connect flags.gg
- In flags.gg, open Company → Integrations and make an integration token. It starts
flg_and is shown once. - In TrackLin.es, an organization admin opens Settings → Integrations → Feature flags, pastes the token and clicks Connect. It’s checked with flags.gg, stored encrypted and never shown again.
- For each project, open Edit project → Integrations → flags.gg and pick the Application its flags go in. Set how many days after production the “Remove flag” ticket is due.
Connect a flags.gg company to one TrackLin.es organization only: flags are named after ticket keys, which are only unique within an organization.
Choose what each column does
On a board’s Edit page, each column has a Flag setting: Automatic, Nothing, Promote to the next environment, Promote to production, or Archive the flag. Automatic promotes from Testing or QA columns, and to production from the board’s Dev complete column. It says what it means next to each column.
Mark a ticket
- On the ticket, tick Needs a feature flag. The flag’s name is the ticket’s key in lower case (
tl-123) unless you give it another. That’s the name your code checks. - The name can change until the flag is made. After that it’s locked.
- Agents connected over MCP see
needs_flagandflag_nameon the ticket, and put new code behind that flag.
What happens as the ticket moves
| When | What happens to the flag |
|---|---|
| The ticket goes onto a board | The flag is made in flags.gg, off, in the application’s first environment (usually dev). |
| It moves to a column set to Promote | The flag is added to the next environment, off. Testing and QA columns do this unless you set otherwise. |
| It moves to a column set to Promote to production | The flag is added to every environment left, up to production, off. The board’s Dev complete column does this unless you set otherwise. |
| The flag reaches production | A “Remove flag” ticket goes into the backlog, due after the project’s cleanup days (30 unless changed), for whoever had the ticket. |
| The “Remove flag” ticket is finished | The flag is archived in flags.gg, in every environment. |
| It moves back, or to the backlog | Nothing: flags.gg never takes a flag out of an environment. |
| It’s deleted, closed as won’t do, or marked a duplicate | The flag is archived. |
If flags.gg can’t be reached, the move still happens; the change is tried again until it works.
The flag panel
- A ticket that needs a flag shows it in each environment: a switch where it has arrived, Not yet where it hasn’t. Switching it here is the same as in flags.gg.
- If flags.gg refused something, such as a flag with that name already existing, it says so on the ticket, and the card on the board shows a red flag.
- Remove flag archives it in every environment. Only do it once your code no longer checks it.
- The terminal app and the phone apps show the flag too.
See also Connect an AI agent for how agents work tickets that need a flag.