Setting Up Jira as a Lean Kanban Board for DBA Work

A new Jira Kanban board comes with a backlog, a set of default columns, and every field anyone has ever added to the project. Most of it doesn’t help me. What I want from a board is short: what I’m doing, what I’m waiting on, what’s next, and how long things take. This post sets a Jira board up to show those four things, then pulls cycle times out of it with a short PowerShell script.

A DBA moves a card across a simple four-column Kanban board, with a single incident card in a lane across the top and a stopwatch timing the work.

This post is part of the Work That Flows: Kanban for DBAs series. The contents page lists every part in order.

The series opener, Agility Comes From the Pipeline, Not the Ceremony, argued for spending effort on delivery rather than on meetings. Kanban says to start with what you do now,[1] so if your shop already runs Jira, most of this is settings on a board you can already create.

Atlassian’s current help pages call projects “spaces” and issues “work items”.[2] The REST API still says project and issue,[3] and so do I.

Three Columns and a Flag

The default columns on a Jira Kanban board are Backlog, Selected for Development, In Progress, and Done.[2] A lean board needs three:

  • Ready: agreed and next in line. This is where you pull from.
  • Doing: someone is working on it now.
  • Done.

A lot of DBA work stops for a while: a change approval, a vendor case, or an application team’s test window. When a card is blocked, I leave it in Doing and add a Blocked flag rather than moving it to a Waiting column. The card is still work in progress, and the flag shows why it isn’t moving.

Every Jira status belongs to one of three categories: To do, In progress, or Done.[4] In Jira Cloud, a flag marks a work item as important or blocked, and a flagged card shows in yellow on a Kanban board.[5] The flag is stored in a checkbox field named Flagged with the single value Impediment, so the JQL query Flagged = Impediment finds every blocked card.[5] A flag doesn’t change the card’s status, so the script below counts blocked time as part of the cycle time. A column can hold more than one status, and Jira treats only the right-most column as complete, so a status like Cancelled belongs in Done.[2]

WIP Limits as a Signal

Jira calls WIP limits column constraints. You can set a minimum, a maximum, or both on any column. When a column goes over its maximum, its header turns red, and when it’s under its minimum, the header turns yellow. Atlassian’s page says the values don’t change the number of work items the column displays.[2] It describes a colour change, and I found nothing in it that stops a third card from landing in a column with a limit of two. Keeping to the limit is up to the people using the board.

The Kanban Guide lists WIP limits among the policies a team should make explicit and agree on together,[1] so a team should set them together and let Jira display them. I don’t have a set limit on Doing, and I should. When a card is flagged as blocked, I send a chat message to the people involved instead of waiting for a meeting.

An Expedite Lane for Incidents

You can base swimlanes on JQL queries, one query per lane. When you choose that method, Jira creates two lanes by default: Expedite, with the query priority = Blocker, and Everything Else, a catch-all at the bottom that you can’t delete.[6]

Change the Expedite query to match how people on your site file incidents. On a fictional site with an Incident work type, that’s:

issuetype = Incident OR priority = Highest

The Kanban Guide calls this a class of service, and its example is an “expedite” class that may pass through even when the WIP limit is full.[1] Anything in production goes in this lane, and work in lower environments waits while a production incident is under way. Consider a limit of one card in the lane. If a second incident arrives, someone decides which one goes first and says so.

One Board, One Filter, Every Project

Part 2 of this series was about having too many boards to check. Jira can build a company-managed board from a saved filter, and that board can show work items from more than one project. The board is available to everyone who has access to the filter.[7] A filter like this pulls one person’s work from three fictional projects:

project in (DBA, OPS, APPDEV) AND assignee = currentUser() ORDER BY Rank ASC

currentUser() searches on whoever is logged in,[8] so each person who opens the board sees their own cards. For a team board, replace that clause with the team’s members or a label.

The Reports You Already Have

The cumulative flow diagram (CFD) is an area chart with one band per column. Atlassian’s guidance is that a band that widens over time usually marks a bottleneck. The chart only includes work items that match the board’s saved filter, and it follows the board’s column mapping.[9] A flagged card stays in its column, so blocked work has no band of its own. The JQL query Flagged = Impediment lists it instead.

The control chart shows cycle time from the time each work item spends in the columns you select. If someone reopens a work item and works on it again, the chart adds that time. For Kanban teams, Atlassian suggests using past performance from this chart to set targets.[10] Select Doing. A flagged card stays in Doing, so blocked time stays in the number.

Cycle Time Through the REST API

For cycle times across boards, or in a status report, use the API. My script also measures something different from the control chart: the elapsed time from the first move into any In progress category status to the resolution date. A card that goes back to Ready for a week still counts that week, because the person who asked for it waited that week too.

The script depends on these points in Atlassian’s reference:

  • Searching uses GET /rest/api/3/search/jql. The JQL must be bounded, meaning it has a search restriction, and the response holds only issue IDs unless you ask for fields.[3]
  • Paging uses nextPageToken. The last page doesn’t include one, and a token expires after seven days.[3]
  • Atlassian’s documentation marks the older /rest/api/3/search endpoint as deprecated and “currently being removed”.[3] Atlassian’s published OpenAPI spec records the removal as announced on October 31, 2024 and effective May 1, 2025.[11]
  • expand=changelog returns recent updates for each issue, newest first.[3] A separate endpoint, /rest/api/3/issue/{key}/changelog, returns all of an issue’s changelogs, oldest first, paged with startAt.[12] The script calls the separate endpoint whenever the embedded page is full or its total is larger than what came back.
  • GET /rest/api/3/status returns every status used in an active workflow, with its status category.[13]
  • The end date comes from the issue’s resolution date. JQL calls that field Resolved, with the alias resolutionDate.[14] The script asks for resolutiondate, which is the name my sample data uses. If it comes back empty on your site, GET /rest/api/3/field lists the field IDs.[15]

Authentication is basic auth with your Atlassian account email and an API token. Atlassian has deprecated password authentication, and it recommends basic auth for simple scripts and manual calls rather than for apps.[16] In PowerShell 7, Invoke-RestMethod -Authentication Basic -Credential builds the Authorization header from a PSCredential.[17] The script prompts with Get-Credential, so the token never appears in the script or on a command line. If you keep the token in a vault, pass a PSCredential to -Credential instead.

Invoke-RestMethod sends a JSON array down the pipeline as a single object,[17] so the parentheses around the status call are there to make Where-Object see each status rather than the whole array.

If your site shows the In progress category under another name, pass it with -InProgressCategoryName. An issue that went straight from To do to Done has no start date, so its cycle time comes back empty.

I summarize with the median and the 85th percentile rather than the average. One request that stayed blocked for six weeks moves the average a long way and barely moves the median. The percentile is nearest-rank, so a spreadsheet may give a different number.

How I Tested It

I tested this against sample data, not a live Jira site. The test replaces Invoke-RestMethod with a function that returns small JSON files shaped like the documented responses. The sample has two search pages joined by a page token, an issue whose embedded history is cut short, a card that went back to To Do and started again, a card that went straight to Done, a custom status in the In progress category, and timestamps in two UTC offsets. The test runs once with dates converted by ConvertFrom-Json and once with dates left as strings. Both runs gave the same cycle times, and they matched the values I worked out by hand. This output is from the first run, which shows times in my machine’s UTC offset:

Try it on a small JQL query first, and compare a few results with the issue history in the browser.

Where I Land

In my opinion, a lean board in Jira takes three columns, a flag for blocked cards, WIP limits the team agrees to, one lane for incidents, and a filter that collects my work from every project. Check the CFD regularly, and run the script when someone asks how long things take.

If you’ve set Jira up differently for operations work, or found WIP limits that hold up on a DBA team, tell me about it on Bluesky or LinkedIn.

Previous: Fit the Process to the People: Working With Teams That Never Use a Board. Next: Planning Time and the Five Delivery Metrics (available 2026-11-30).

References

  1. The Kanban Guide - Kanban University. Lists “Start with what you do now” among the change management principles, includes WIP limits and policies for classes of service among the policies to make explicit and agree on jointly, and describes an “expedite” class of service that may pass through the system even when the WIP limit is reached. ↩
  2. Configure columns - Atlassian Support. Gives the default Kanban columns, allows several statuses per column, says Jira considers only the right-most column complete, and describes column constraints: red header above the maximum, yellow below the minimum, and no effect on the number of work items displayed. Uses “space” and “work item” for project and issue. ↩
  3. Issue search - Jira Cloud platform REST API v3, Atlassian Developer. Documents GET /rest/api/3/search/jql: bounded JQL, IDs-only default, nextPageToken paging (absent on the last page, expires in 7 days), and expand=changelog returning recent updates newest first. Marks the older /rest/api/3/search as deprecated and “currently being removed”. ↩
  4. What is a workflow status? - Atlassian Support. States that every status, including custom statuses, belongs to one of three categories: To do, In progress, or Done. ↩
  5. Flag a work item - Atlassian Support. Flagging a work item marks it as important or blocked, a flagged card is displayed in yellow on a Kanban board, and the flag is stored in a custom checkbox field named “Flagged” whose only value is Impediment, searchable with the JQL Flagged = Impediment. ↩
  6. Configure swimlanes - Atlassian Support. Describes query-based swimlanes, the default Expedite lane (priority = Blocker), and the Everything Else lane that can’t be deleted. ↩
  7. Create a board based on filters - Atlassian Support. Creating a company-managed board from a saved filter that can show work items from multiple spaces, available to all users with access to the filter. ↩
  8. JQL functions - Atlassian Support. The currentUser() function performs searches based on the currently logged-in user and works with fields such as Assignee. ↩
  9. View and understand the cumulative flow diagram - Atlassian Support. Describes the CFD’s axes and bands, a widening band as a likely bottleneck, and that the chart is limited to the board’s saved filter and based on its column mapping. ↩
  10. View and understand the control chart - Atlassian Support. Explains that the control chart shows cycle time from time spent in selected statuses, adds time for reopened work, shows a rolling average and standard deviation, and can be used by Kanban teams to set targets from past performance. ↩
  11. Jira Cloud platform REST API v3 OpenAPI specification - Atlassian Developer. The x-changes entry on GET and POST /rest/api/3/search reads type “removed”, announced 2024-10-31, effective 2025-05-01, with details at changelog entry CHANGE-2046. ↩
  12. Issues - Jira Cloud platform REST API v3, Atlassian Developer. The “Get changelogs” operation returns a paginated list of all changelogs for an issue, sorted by date starting from the oldest, paged with startAt and maxResults. ↩
  13. Workflow statuses - Jira Cloud platform REST API v3, Atlassian Developer. The “Get all statuses” operation, GET /rest/api/3/status, returns all statuses associated with active workflows, each with its statusCategory. ↩
  14. JQL fields - Atlassian Support. The Resolved field searches by resolution date, with the alias resolutionDate. ↩
  15. Issue fields - Jira Cloud platform REST API v3, Atlassian Developer. The “Get fields” operation, GET /rest/api/3/field, returns system and custom issue fields with their IDs. ↩
  16. Basic auth for REST APIs - Atlassian Developer. Basic authentication uses an Atlassian account email address and API token, password authentication is deprecated, and basic auth is recommended for simple scripts and manual calls. ↩
  17. Invoke-RestMethod - Microsoft Learn. The Basic option of -Authentication requires -Credential and sends an Authorization: Basic header, and a JSON array is sent down the pipeline as a single object. ↩