How Field & Screen Rules, Behaviors & Templates is tested
Field & Screen Rules, Behaviors & Templates uses multiple test layers because no single test type can prove Jira runtime behavior by itself.
Marketplace V1 release-validation snapshot
The current Marketplace V1 release baseline includes:
-
24/24 Condition contracts passed in one complete Staging execution, with 0 failed and 0 skipped;
-
16 identity / Rule Initiator contracts, 7 option-backed contracts and 1 Status contract in that suite;
-
14 additional functional Staging scenarios confirmed across Option Visibility, JSM Agent View, storage/bootstrap and full Builder CRUD/publication flows;
-
35 automated suites / 1,402 tests passed in the release-validation baseline;
-
deterministic cleanup of the final Condition suite, including unpublication/deletion and no remaining UI Modification from the suite.
The release baseline proves the contracts that actually ran. It does not imply that every operator, field family, action or surface combination is fully exhausted.
What we test
Depending on the capability, testing covers:
-
field and context-source classification;
-
value normalization and stable Jira identifiers;
-
supported operators;
-
initial rule evaluation;
-
field changes and runtime reevaluation;
-
condition reversal;
-
confirmed empty values;
-
observed transient values where Jira has demonstrated them;
-
ALL/ANYcomposition; -
multiple rules affecting the same target;
-
conflict/precedence behavior;
-
stale asynchronous evaluation protection;
-
target restoration;
-
supported Jira and JSM surfaces;
-
target actions and their reversible states;
-
publication safety;
-
storage/bootstrap readiness;
-
cleanup and restoration.
Test layers
Automated logic and runtime tests
Automated tests validate deterministic behavior such as normalization, operators, boolean composition, rule ordering, dependency indexing, stale-result protection, effective-state reconciliation, persistence boundaries and validation.
These tests are broad, but they do not prove how a real Jira editor emits values or how a UI Modification behaves in the browser.
Backend and persistence tests
Repository and resolver tests validate trusted boundaries including:
-
persistence;
-
authorization;
-
publication;
-
Jira metadata;
-
option/entity catalogue handling;
-
identity and membership lookup behavior;
-
storage initialization and migration behavior;
-
cleanup/retention contracts.
Generated Condition smoke contracts
The release Condition suite generates controlled Behaviors with explicit expected results before browser execution.
Marketplace V1 currently generates 24 Condition contracts:
-
16 identity / Rule Initiator scenarios;
-
7 option-backed scenarios;
-
1 Status scenario.
Four historical User Picker membership scenarios were deliberately removed from the V1 contract after the security/privacy hardening. They are not counted as passes or skips.
Real Jira / Staging Playwright tests
Selected scenarios are executed end-to-end against a deployed Forge app and native Jira/JSM Cloud UI using Playwright.
The engineering workflow may use Codex-assisted browser execution, but the relevant evidence contract is:
-
a predefined expected result;
-
the real deployed app;
-
the real Jira/JSM surface;
-
native field interaction;
-
observed target effect;
-
cleanup/restoration.
Real Jira/Staging tests can validate behavior that mocks cannot reliably prove, including:
-
actual Jira field value shapes;
-
intermediate editor states;
-
onInitandonChangebehavior; -
native field-method availability;
-
Request Type isolation;
-
runtime convergence;
-
repeated changes without page reload;
-
publication/runtime association;
-
action application and reversal;
-
option catalogue behavior;
-
storage/bootstrap timing;
-
cleanup and restoration.
Current release smoke families
Conditions
The final Marketplace V1 Condition run passed 24/24 contracts in one sequential execution.
It includes current evidence for:
-
direct Single User Picker;
-
Assignee;
-
Reporter;
-
Multi User Picker;
-
confirmed empty-safe user branch;
-
Rule Initiator fixed user;
-
Rule Initiator against mutable user fields;
-
Rule Initiator group membership;
-
Rule Initiator Project Role through direct actor;
-
Rule Initiator Project Role through group actor;
-
mixed
ALL; -
mixed
ANY; -
Status change/reversal;
-
option-backed field adapters and reversal paths.
Option Visibility
Marketplace V1 release validation covers:
-
Create/View capability discovery;
-
authoritative catalogue loading;
-
editor configuration;
-
showOnly/hideSelectedbehavior; -
live application and reversal;
-
repeated cycles;
-
underlying value preservation/restoration.
Option Visibility is therefore a delivered V1 capability for supported field/view combinations, not a planned-only PR2G item.
JSM Agent View
Release validation covers:
-
Agent Create;
-
Agent Issue View;
-
Request Type isolation where Request Types share an Issue Type;
-
direct and queue entry;
-
refresh/reapplication;
-
Request Type navigation/isolation;
-
discovery/probe lifecycle and cleanup.
JSM Agent Transition is separate and not inferred from these results.
Builder, storage and publication
Release validation includes:
-
storage readiness/open/reload;
-
full Builder CRUD;
-
draft persistence and reopen;
-
context change;
-
publication;
-
native Jira effect;
-
unpublication and restoration;
-
deletion/cleanup;
-
protection against replacing an active publication with an invalid new draft.
Surface-by-lifecycle verification
A Real Jira result is scoped to a surface and, where relevant, a runtime lifecycle.
For ordinary Jira, the public verification model distinguishes:
|
Surface |
|
|
|---|---|---|
|
Global Issue Create (GIC) |
Initial rule evaluation on native Create |
Reevaluation after a relevant source changes |
|
Issue View |
Initial rule evaluation on native Issue View |
Reevaluation after a relevant source changes |
|
Transition |
Product-deferred from Marketplace V1 Standard |
Product-deferred from Marketplace V1 Standard |
JSM Agent Create and Agent Issue View are documented separately because they use different Atlassian contexts and capability masks.
A green result on one surface does not automatically prove another surface.
Target-action verification
Field conditions and target actions are verified independently.
Current action families include:
-
Show / Hide;
-
Required / Optional;
-
Read-only / Editable;
-
Display Name Override;
-
Description Override;
-
Option Visibility for supported Marketplace V1 option fields;
-
Set Value as future typed capability.
For reversible actions, the preferred Real Jira sequence is:
baseline
→ condition true / action contributes
→ condition false / contribution withdraws
→ condition true / contribution returns
See Target Actions for current action evidence.
Evaluation mode must be part of the test
onInit and onChange expectations depend on the configured evaluation mode:
|
Evaluation mode |
Initial load |
Relevant source change |
|---|---|---|
|
Load only |
Evaluated |
Not reevaluated |
|
Change only |
Does not contribute |
Evaluated after change |
|
Load and change |
Evaluated |
Reevaluated after change |
A test result should state or encode the evaluation mode rather than interpreting every missing onInit or onChange as a defect.
Public documentation vs internal evidence
Public capability documentation should expose:
-
the tested capability or scenario;
-
expected semantic behavior;
-
current result;
-
verification level;
-
known limitation where relevant.
Internal evidence may additionally retain build/commit identifiers, Behavior/version IDs, UI Modification IDs, sanitized logs, screenshots, traces and cleanup records.
Raw tenant identifiers are not required in the public documentation.
Status meaning
|
Status |
Meaning |
|---|---|
|
✅ Passed |
Expected behavior passed at the stated verification level |
|
⚠️ Limited |
Supported with a known limitation or unresolved evidence boundary |
|
🚫 Unsupported |
Intentionally unavailable due to product policy or platform capability |
|
🧪 Not yet verified |
Implemented/planned but the stated verification level has not been completed |
|
❌ Failed |
The scenario should work but the test found a defect |
Quality principle
A capability is documented at the level it has been tested. A successful release smoke promotes the contracts it actually executes, not every adjacent capability by association.
See Verification Coverage and Gaps for the remaining evidence backlog.