Skip to content
QA Workflow Assistant

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.

QA Workflow Assistant12 min read
  • 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:

  1. The Test issue exists with a specific title and clear steps.
  2. Preconditions and expected results are observable.
  3. The case is linked to the story (or requirement) it protects.
  4. 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:

FieldGuidance
Summary / titleOne behavior: “Valid user can reset password via email link”
DescriptionContext, rules, and notes that do not belong in steps
PriorityReflect business risk, not your personal interest
ComponentFeature area ownership (Auth, Cart, Billing)
LabelsPack 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:

StepActionTest dataExpected result
1Open the login pageStaging URLLogin form renders with email and password fields
2Enter a valid email and passwordKnown active userFields accept input; no validation errors
3Submit the formUser lands on the dashboard; session cookie is set
4Refresh the dashboardUser 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_v2 is 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:

FieldRequired?Why
TitleYesSearch and reporting
PreconditionsYesPrevents false fails
Steps + expected resultsYesRepeatability
PriorityYesExecution order
ComponentYesOwnership
LabelsYesPack membership
Type (positive/negative/edge)RecommendedCoverage balance
Automation candidateOptionalLater scripting
Estimated timeOptionalCapacity 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.”

TestLink reason
Guest completes checkout with valid cardPrimary acceptance
Guest email is required and validatedSupporting criterion
Guest cannot access order history after purchase without signupBoundary / product rule
Creating an account mid-checkout preserves cartRelated 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:

  • smoke
  • regression
  • negative
  • mobile
  • flaky-candidate
  • release-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

ColumnMaps to
SummaryTest title
DescriptionContext
PreconditionsPreconditions field / first section
Step actionsOrdered steps
Expected resultsPer-step expected results
PriorityPriority
LabelsLabels
ComponentComponent
Story keysLinks 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:

  1. User can apply one valid promo code per order.
  2. Discount appears on the review step before payment.
  3. Invalid codes show an error and leave totals unchanged.

Draft Tests:

CriterionTest titleType
1Valid promo applies once and updates line discountsPositive
1Second exclusive promo is rejected while first remainsEdge
2Review step shows discounted total before payPositive
3Invalid promo shows error; totals unchangedNegative
(gap)Removing promo restores original totalsPositive

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 SAVE10 is active for the staging storefront
  • User is logged in as a standard customer

Steps:

StepActionExpected result
1Open cart and proceed to checkoutCheckout loads with correct subtotal
2Enter promo SAVE10 and applySuccess message; discount line appears
3Continue to order reviewReview shows discounted total matching rules
4Navigate back to payment without placing orderDiscount 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.

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

  1. Title states the behavior under test in one line.
  2. Preconditions are complete enough to avoid setup debates.
  3. Steps are ordered, specific, and observable.
  4. Expected results are measurable (UI state, message, data change).
  5. Story link exists before the first execution.
  6. Component and pack labels are set on create—not “later.”
  7. Negatives and edges are intentional, not accidental.
  8. The case is added to the right Test Set.
  9. Time estimate is realistic if your team uses capacity planning.
  10. A second person can run the case without a walkthrough.

For writing quality beyond Jira mechanics, keep how to write QA test cases nearby.

QA craft companions:

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.

→ Try QA Workflow Assistant

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.

No spam. Unsubscribe anytime.