Definition of Done templates for Jira teams
Copy-ready Definition of Done lists for stories, bugs, QA, releases, docs, service requests and incidents, and two ways to add them to every Jira work item.
A Definition of Done is the short list every work item of a kind has to pass before anyone calls it done. Below are copy-ready lists for seven kinds of Jira work: user stories, bug fixes, QA tasks, releases, documentation changes, service requests and incidents.
After the lists come two ways to put them on every new work item: a Jira Automation rule, and Checklist for Jira. All seven lists are also in one plain text file.
Definition of Done, Definition of Ready and acceptance criteria
Three terms that teams often mix up:
| Applies to | Answers | Checked | |
|---|---|---|---|
| Definition of Ready | Every work item, before work starts | Can we start this? | In refinement and planning |
| Acceptance criteria | One work item | Does it do what was asked? | When the product owner reviews it |
| Definition of Done | Every work item of a kind | Is it finished to our standard? | Before it moves to Done |
The Definition of Done is defined in the Scrum Guide, where it sets the quality bar every increment must meet. The Definition of Ready isn’t part of Scrum. It’s a practice many teams add so that unclear work doesn’t enter a sprint.
Acceptance criteria change with each story, while the Definition of Done stays the same until the team agrees to change it. A story can meet all its acceptance criteria and still not be done: the feature works, but nobody reviewed the code or wrote the release note.
What makes a good Definition of Done
- Every item is a yes or no. Someone who didn’t do the work should be able to check it.
- Items describe results, not effort. “Release note drafted”, not “Consider documentation”.
- Items apply to every work item of that kind. If one applies only sometimes, say when (“if the story adds any”), or move it to acceptance criteria.
- 6 to 10 items. Longer lists get ticked without being read.
Definition of Done templates
Copy a list, then edit it to match your stack and your team. Each item is written so it can become a checkbox as it stands.
User story
- Every acceptance criterion passes, and the product owner has seen it working
- Code reviewed and approved by another developer
- Unit and integration tests added, and the build is green
- No new high or critical findings in the security scan
- Merged to the main branch and deployed to staging
- Checked on the supported browsers and screen sizes
- Analytics events fire as specified, if the story adds any
- User-facing text final and sent for translation
- Release note or help article drafted, if users will notice the change
Bug fix
- Bug reproduced, with the steps written in the work item
- Root cause written in the work item
- A test that failed before the fix now passes
- Fix reviewed and merged
- Verified on staging by someone other than the developer
- Same flaw checked for in related screens, platforms and services
- Regression suite passes
- Linked support tickets updated with the fix and the release it ships in
Test or QA task
- Test cases cover every acceptance criterion
- Test data set up and described in the work item
- Tests run on every agreed browser, device and environment
- Every failure logged as a bug and linked to the story
- Exploratory testing done on the riskiest flows
- New automated tests added to the regression suite where practical
- Results summary added to the work item
- QA sign-off recorded, with the build number tested
Release
- Every work item in the version is Done, or moved to a later version
- Release notes written and approved
- Database migrations tested on a copy of production data
- Rollback plan written and tested
- Release tagged in the repository
- Smoke tests pass in production after the deploy
- Error rates and alerts watched for the first hour after the deploy
- Support and customer success teams briefed
- Version marked as released in Jira
Documentation change
- Content checked against the product itself, not the spec
- Screenshots and examples match the current interface
- Reviewed by a subject matter expert
- Edited to the style guide
- Every link works
- Published, with a redirect if the address changed
- Linked from the release note or the work item that changed the feature
- Page title and summary written for search
Service request
- Request details complete, or the missing ones asked for
- Approval recorded, if the request type needs one
- Fulfilled using the knowledge base steps for this request type
- Access, asset or license records updated
- Requester told what was done, in a reply they can see
- Knowledge base article updated if the steps changed
- Resolution set, and time logged if the team tracks it
- Requester confirmed it works, or the auto-close period passed
Incident
- Service restored, and monitoring confirms it
- Status page and affected customers updated with the resolution
- Timeline recorded in the work item: detected, acknowledged, mitigated, resolved
- Impact recorded: services, customers and duration
- Root cause found, or a problem record opened to find it
- Follow-up actions created as work items, each with an owner
- Post-incident review held for major incidents
- Runbook and alerts updated where they fell short
Add the list to new work items with Jira Automation
An automation rule can write a Definition of Done into the description of every new work item of a type. Atlassian describes this approach in a support article.
-
Go to Space settings > Automation and create a rule from scratch.
-
Choose the Work item created trigger.
-
Add a Work item fields condition: Work type equals Story (Atlassian’s article calls the field Issue Type). In a service space, use a JQL condition instead, such as
"Request Type" = "Request a new laptop". -
Add the Edit work item action, choose Description, and enter the list in Jira’s wiki markup:
{{issue.description}} h3. Definition of Done * Every acceptance criterion passes, and the product owner has seen it working * Code reviewed and approved by another developer * Unit and integration tests added, and the build is green * No new high or critical findings in the security scan * Merged to the main branch and deployed to staging * Checked on the supported browsers and screen sizes -
Name the rule and turn it on. Make one rule per work type, or one rule with an If/else block that picks the list.
The {{issue.description}} line keeps whatever the reporter typed. Leave it out, and the rule replaces the description with the list.
Team-managed spaces have a simpler option: the Description field can carry default text for each work type, with no rule at all. Company-managed spaces have no default description setting, so the rule is the simplest route there.
Where the automation falls short
- The list arrives as plain bullets. The Edit work item action can’t create action items, so nobody can tick the list until someone turns each line into one by hand. Atlassian tracks this as a suggestion.
- Nothing is enforced. The work item can move to Done with every line ignored.
- No reporting. JQL can’t tell which lines were done.
A Checkboxes custom field, with the Definition of Done items as its options, gives you ticks that JQL can search. A workflow can require the field before Done, but a required-field rule only checks that the field isn’t empty, so one ticked box is enough to pass. In a team-managed space you can require every item: on the transition into Done, add one Restrict to when a work item is a specific value rule per option, set to contains. Each new item means another rule.
Load and enforce it with Checklist for Jira
Checklist for Jira turns each list into a checklist that loads by itself the first time the work item is opened, and holds the work item until the required items are done.
- Make a template for each list. Global templates, kept in Jira’s app settings, are shared by every space, and each space can keep templates of its own. Mark the items that must be done as mandatory (the * beside each item). Lock the ones nobody should delete or reword; people can still change their status. See Managing global templates.
- Assign each template with JQL. On the space’s Checklist for Jira Cloud page, under Template Assignments, pair a template with JQL such as
type = Story,type = Bugor"Request Type" = "Request a new laptop". The first time someone opens a matching work item, it gets that checklist. See Assigning templates. - Block Done until the required items are ticked. In a company-managed space, add the All mandatory checklist items are completed validator to the transition into Done. The validator isn’t offered in team-managed spaces. See Block issue transition using checklist validators.
A work item nobody has opened has no checklist yet, and the validator lets it through.
With merging turned on, a global baseline and a team’s own items combine into one checklist. To find work items that reached Done with required items still open, such as ones closed before you added the validator, search for:
statusCategory = Done AND "Mandatory Items Remaining" > 0
Keep the Definition of Done in use
- Review it in retrospectives. Add an item when the same kind of miss happens twice, and remove items nobody has needed in months.
- Count it in estimates. Testing, review and release notes are part of the work, so size stories with the Definition of Done in mind.
- Don’t tick what wasn’t done. If an item doesn’t apply, say why in a comment, or in Checklist for Jira set its status to Skipped.
- Remember that required isn’t the same as done. Atlassian’s article on making a field required before closing a work item shows the limit: the validator only stops the move when the field is empty. A required field only proves someone typed something; a checklist with required items shows each step was ticked off.
Questions
Should every team use the same Definition of Done?
Share a baseline across the product and let teams add to it. The Scrum Guide says that when an organization sets a Definition of Done, every team follows it as a minimum. In Checklist for Jira, a global template can hold the baseline and each space can merge in its own items.
Who decides what goes in the Definition of Done?
The team that does the work, unless the organization sets one. Review it in retrospectives, and add an item when the same kind of miss happens twice.
How long should a Definition of Done be?
Short enough that people read it every time, usually 6 to 10 items. Anything that applies to only some work items belongs in acceptance criteria or a separate template.
Does Jira have a Definition of Done field?
Not out of the box. Teams keep it in the description, in a custom field they create, or in a checklist app.
Keep reading
Try Checklist for Jira
Turn any Jira issue into a checklist. Track to-dos, acceptance criteria and Definition of Done without sub-tasks, and hold a transition until the required items are done.