Blog
How to Create Test Cases in Jira (With Xray Fields, Steps, and Examples)
Create test cases in Jira with Xray: build Test issues, write manual steps, link stories, apply labels, import from sheets, and avoid common setup mistakes.
- jira
- test-cases
- xray
- manual-testing
- qa
If you need to create test cases in Jira in a way the whole team can reuse, you need more than a checklist comment on a story. You need Test issues with clear steps, links back to requirements, and enough structure that the same cases can run again next sprint.
This guide walks through creating test cases in Jira using the Xray-oriented model most QA teams adopt: Test issues, manual steps, story links, labels and components, imports, and drafting from acceptance criteria. For the wider system—sets, executions, reporting—start from the pillar Jira test management guide.
What “create test cases in Jira” should mean
Creating a case is finished only when four things are true:
- The Test issue exists with a specific title and clear steps.
- Preconditions and expected results are observable.
- The case is linked to the story (or requirement) it protects.
- Labels/components make the case findable for smoke, regression, or feature packs.
A Task titled “Test checkout” that dies in Done after one sprint is not a reusable test case. Treat Tests as specifications; treat executions as evidence. That distinction is covered in the Xray tutorial and the Jira test execution guide.
Prerequisites before you create the first Test
Confirm your project model
In Xray-enabled projects, you typically create issues of type Test. In native Jira without an app, teams sometimes use a custom issue type. This article assumes Xray-style Tests because that is the durable pattern for jira test management.
Get the story ready enough
Do not invent steps from a vague title. You need:
- User goal and actor
- Acceptance criteria (even if draft)
- Known constraints (roles, feature flags, markets)
- Environment assumptions (staging data, payment sandbox)
If criteria are weak, fix them first using patterns from acceptance criteria examples. Case writing craft beyond Jira fields is in how to write QA test cases.
Step-by-step: create a Test issue in Jira (Xray)
1. Create the issue
From the project, create an issue of type Test. Set:
| Field | Guidance |
|---|---|
| Summary / title | One behavior: “Valid user can reset password via email link” |
| Description | Context, rules, and notes that do not belong in steps |
| Priority | Reflect business risk, not your personal interest |
| Component | Feature area ownership (Auth, Cart, Billing) |
| Labels | Pack tags such as smoke, regression, api |
Avoid titles like “Password stuff” or “AC1.” Future filters and executions depend on readable summaries.
2. Fill manual test details
In Xray, manual tests usually include structured steps. For each step, capture action and expected result. Optional data columns help when inputs vary.
Example structure for a login case:
| Step | Action | Test data | Expected result |
|---|---|---|---|
| 1 | Open the login page | Staging URL | Login form renders with email and password fields |
| 2 | Enter a valid email and password | Known active user | Fields accept input; no validation errors |
| 3 | Submit the form | — | User lands on the dashboard; session cookie is set |
| 4 | Refresh the dashboard | — | User remains authenticated |
Write steps a teammate can run without asking you what “valid user” means. Put concrete accounts in test data or a linked secure note—not vague “use a test account.”
3. Add preconditions
Preconditions state what must already be true:
- User exists and is not locked
- Email delivery is working in the environment
- Feature flag
password_reset_v2is on - Browser is a supported desktop version
If a precondition fails, the execution status should be BLOCKED, not FAIL. That lifecycle is explained in the Jira test execution guide.
4. Link the Test to the story
Use the relationship your app provides (commonly “tests” / “tested by”). From the story, you should see the Test; from the Test, you should see the story. This is the foundation of requirements traceability in Jira and Xray.
Link early—during refinement or right after the story is ready—not during the final regression crunch.
5. Place the Test into organization
Add the Test to a Test Set (for example “Auth smoke” or “Checkout regression”) or ensure labels make JQL packing easy. Organization is what turns individual cases into a suite you can execute.
Manual case fields worth standardizing
Teams drown when every engineer invents different fields. Standardize a small set:
| Field | Required? | Why |
|---|---|---|
| Title | Yes | Search and reporting |
| Preconditions | Yes | Prevents false fails |
| Steps + expected results | Yes | Repeatability |
| Priority | Yes | Execution order |
| Component | Yes | Ownership |
| Labels | Yes | Pack membership |
| Type (positive/negative/edge) | Recommended | Coverage balance |
| Automation candidate | Optional | Later scripting |
| Estimated time | Optional | Capacity planning |
Mirror these with a shared writing standard such as the QA test case template. Jira fields store the data; the template keeps quality consistent.
Linking tests to stories without clutter
One story, multiple tests
Prefer several focused Tests over one mega-case that validates ten criteria. Mega-cases are hard to fail cleanly and harder to reuse.
Many stories, shared tests
Some cases protect cross-cutting rules (session timeout, tax calculation). Link shared Tests to multiple stories when accurate, or link to an epic/requirement and reference stories in the description. Do not duplicate the same steps into five near-identical issues.
Example map
Story: “Guest can check out without creating an account.”
| Test | Link reason |
|---|---|
| Guest completes checkout with valid card | Primary acceptance |
| Guest email is required and validated | Supporting criterion |
| Guest cannot access order history after purchase without signup | Boundary / product rule |
| Creating an account mid-checkout preserves cart | Related path often broken |
Labels, components, and filters that scale
Components
Use components for stable product areas. They should change rarely and match engineering ownership.
Labels
Use labels for cross-cutting packs and attributes:
smokeregressionnegativemobileflaky-candidaterelease-1-8
Keep a published label glossary. Uncontrolled labels become noise.
Useful JQL patterns (conceptual)
Teams often filter for:
- Tests in component Auth labeled smoke
- Tests linked to a specific fix version’s stories
- Tests updated in the last 14 days (recently changed behavior)
Exact JQL varies by Jira site; the principle is: every Test should be reachable by component + pack without opening Confluence.
Importing test cases into Jira
When you migrate from spreadsheets or another tool, import beats manual re-typing—but only if columns map cleanly.
Prepare the sheet
| Column | Maps to |
|---|---|
| Summary | Test title |
| Description | Context |
| Preconditions | Preconditions field / first section |
| Step actions | Ordered steps |
| Expected results | Per-step expected results |
| Priority | Priority |
| Labels | Labels |
| Component | Component |
| Story keys | Links to create after import |
Import pitfalls
- Merged cells and free-form “Step 1 / Step 2” in one cell break structured step fields
- Missing story keys leave orphans you will forget to link
- Duplicate titles create twin Tests that diverge over time
- Encoding issues mangle special characters in expected results
After import, spot-check 10% of cases by executing them once. Fix mapping problems before you scale the suite. Broader suite design after import should still follow regression test cases guidance.
Creating cases from acceptance criteria
Acceptance criteria are the fastest honest input for drafting Tests. Translate each criterion into one or more cases; add negatives the criteria forgot.
Worked example
Acceptance criteria:
- User can apply one valid promo code per order.
- Discount appears on the review step before payment.
- Invalid codes show an error and leave totals unchanged.
Draft Tests:
| Criterion | Test title | Type |
|---|---|---|
| 1 | Valid promo applies once and updates line discounts | Positive |
| 1 | Second exclusive promo is rejected while first remains | Edge |
| 2 | Review step shows discounted total before pay | Positive |
| 3 | Invalid promo shows error; totals unchanged | Negative |
| (gap) | Removing promo restores original totals | Positive |
Notice the extra case for removal. Criteria rarely list undo paths; good QA still covers them. Coverage depth choices are discussed in basic, standard, and deep coverage.
Full example: Test issue content
Title: Valid promo reduces checkout total before payment
Preconditions:
- Cart has two in-stock items totaling more than the promo minimum
- Promo
SAVE10is active for the staging storefront - User is logged in as a standard customer
Steps:
| Step | Action | Expected result |
|---|---|---|
| 1 | Open cart and proceed to checkout | Checkout loads with correct subtotal |
| 2 | Enter promo SAVE10 and apply | Success message; discount line appears |
| 3 | Continue to order review | Review shows discounted total matching rules |
| 4 | Navigate back to payment without placing order | Discount remains applied |
Labels: checkout, smoke, positive
Component: Checkout
Links: Story for promo at checkout
When this fails, a tester should be able to file a defect with steps already written. Execution and defect linking practices are in the Jira test execution guide and Xray test execution.
Common mistakes when creating test cases in Jira
Writing UI click paths that ignore intent
“Click the blue button on the right” breaks when the UI moves. Prefer intent: “Choose Apply promo on the checkout summary.”
Stuffing multiple behaviors into one Test
If step 7 can fail independently of step 2, split the case. Status granularity matters during release gates.
Skipping links
Unlinked Tests do not help coverage reports. If you cannot name the story, question whether the case should exist yet.
Using description instead of steps
Long prose in Description is hard to execute and impossible to mark step-level results. Put actions in Steps.
Creating forever and never pruning
Obsolete Tests pollute smoke packs. Archive or mark deprecated when behavior is removed. Suite hygiene is part of Xray best practices.
Copy-pasting without adapting data
Cloned cases that still reference another feature’s accounts cause false fails and wasted triage.
Best practices checklist
- Title states the behavior under test in one line.
- Preconditions are complete enough to avoid setup debates.
- Steps are ordered, specific, and observable.
- Expected results are measurable (UI state, message, data change).
- Story link exists before the first execution.
- Component and pack labels are set on create—not “later.”
- Negatives and edges are intentional, not accidental.
- The case is added to the right Test Set.
- Time estimate is realistic if your team uses capacity planning.
- A second person can run the case without a walkthrough.
For writing quality beyond Jira mechanics, keep how to write QA test cases nearby.
Related guides in this cluster
- Pillar: Jira test management guide
- Managing test cases in Jira
- Xray tutorial
- Jira test execution guide
- Xray Test Sets
- Jira QA workflow
- Requirements traceability in Jira and Xray
QA craft companions:
- QA test case template
- Acceptance criteria examples
- Regression test cases
- Basic, standard, and deep coverage
Conclusion
To create test cases in Jira effectively, treat each Test as a reusable specification: clear title, structured steps, honest preconditions, story links, and labels that make packing possible. Draft from acceptance criteria, add the paths criteria forget, and organize into sets before release week.
Jira fields only help if the content is runnable. Spend your energy on specificity and links; the executions and dashboards will follow.
FAQ
Do I need Xray to create test cases in Jira?
You can approximate with custom issue types, but Xray (or a similar app) gives you structured steps, executions, and coverage links that plain Jira lacks. See Jira vs Xray and the Xray tutorial.
Should every acceptance criterion become exactly one Test?
Often yes for simple criteria. Split when a criterion hides multiple behaviors, or merge only when steps are inseparable. Prefer clarity for pass/fail.
Where should test data live?
Non-secret data can live in the step’s data field. Credentials and tokens belong in a secrets store or managed test accounts—never in public issue fields if your Jira is widely visible.
How detailed should steps be for experienced testers?
Detailed enough that a new hire succeeds. Experts can skim; juniors cannot invent missing expected results. Consistency beats clever brevity.
Can I generate first drafts automatically?
Yes—many teams draft from stories and then refine. Tools like QA Workflow Assistant speed structured drafts; humans still own risk judgment and product nuance. Then paste or push into Jira Test issues.
What if the story changes after Tests exist?
Update or retire Tests in the same change. Out-of-date steps are worse than missing steps because they create false confidence.
Improve your QA workflow faster
QA Workflow Assistant helps QA engineers generate structured test cases from Jira stories, improve coverage, and organize testing workflows.
Explore Pricing and Docs when you are ready to connect your workflow.
Stay ahead in QA
Get practical QA guides, Jira & Xray tutorials, testing checklists, AI testing insights, and occasional product updates.
Related articles
Jira Test Case Management: A Practical Guide for QA Teams
How QA teams manage test case lifecycle in Jira—structure, story traceability, review, and a practical workflow from draft to Xray delivery.
August 18, 2026 · 12 min read
Jira Test Execution Guide: Statuses, Evidence, Defects, and Release Gates
Master jira test execution: Pass, Fail, Blocked, and TODO lifecycle, evidence, defects from fails, smoke vs full runs, and Xray Test Execution practice.
August 7, 2026 · 12 min read
Jira vs Xray: When Jira Alone Is Enough and When You Need Xray
Honest comparison of Jira alone vs Jira + Xray for QA—feature table, cost and complexity tradeoffs, when not to buy Xray, migration path, myths, and FAQ.
August 7, 2026 · 12 min read