Field & Screen Rules, Behaviors & Templates
Auto Light Dark
Auto Light Dark

Guided condition tests and metadata loading

Guided condition tests and metadata loading

The condition builder, validation, publishing and guided tests use the same condition-source capability information.

A field is not classified one way in the editor and another way at runtime.

Shared condition-source flow

Field detected in the selected Jira context
        |
        v
Load stored metadata as a starting point
        |
        v
Retrieve authoritative metadata when required
        |
        v
Classify or reclassify the field family
        |
        v
Resolve required, optional or unknown
        |
        v
Load authoritative options or entities
        |
        v
Build valid operators and the correct input control
        |
        v
Validate the saved condition
        |
        v
Reuse the same capability descriptor for publishing and guided validation

Stored metadata is a cache and starting point. It cannot override newer authoritative Jira metadata.

What administrators see while data loads

For a source that needs additional metadata, the builder can show:

  • a loading state;

  • the supported operator list after classification;

  • the input control appropriate to the field family;

  • Jira labels while storing stable IDs;

  • an actionable error when metadata cannot be loaded;

  • Retry without restarting the complete wizard.

The builder does not:

  • display an empty selector as though an API error meant there were no options;

  • ask administrators to enter internal Jira IDs manually;

  • silently treat stale cached options as authoritative;

  • keep an incompatible operator after a field is reclassified.

Input controls by field family

Field family

Builder control

Text

Text input

Paragraph

Text area

Number

Number input

Date

Date input

Datetime

Datetime input

Boolean

Boolean choice

Single option

Single-select control

Multiple option

Multi-select control

Cascading Select

Parent selection with optional child refinement

User Picker / Multi User Picker

User selector for direct identity/set comparisons; empty/not-empty where applicable

Rule Initiator

User, group and Project Role selectors

Components, Fix Versions, Affects Versions, Status and Parent are supported condition-source families in the current product model, subject to their documented context and verification boundaries. Labels remains intentionally excluded by product policy.

Metadata loading principles

Different facts may come from different Jira APIs depending on project model and field family.

Authoritative metadata can include:

  • field presence on the configured screen;

  • exact field schema/type;

  • applicable custom-field context;

  • paginated option catalogues;

  • project-filtered Priority values;

  • effective requiredness;

  • runtime field/method evidence from UI Modifications discovery.

Runtime discovery is not a substitute for an authoritative option catalogue.

Normal Behavior execution does not query Jira REST APIs to discover option catalogues after the screen opens. Published runtime payloads are prepared and validated before they reach the screen.

Metadata failures

An API failure is different from a valid empty result.

Examples:

  • a successful response with no options can mean the context truly has no options;

  • a permission failure means authoritative metadata could not be read;

  • rate limiting means the request should be retried;

  • a partial pagination failure means the option catalogue is incomplete.

For option-backed conditions, incomplete or non-authoritative metadata blocks safe validation and publication.

Guided validation availability

The Guided Smoke Runner is an internal release-validation capability, not a customer-facing production feature.

It is disabled by default and should be enabled only in an approved non-production Forge environment, such as Development or Staging, using the dedicated smoke flags. The Marketplace V1 release Condition suite was executed in Staging with those flags enabled only there; Production remained without the smoke flags.

Guided validation does not replace normal customer testing, and local automated tests do not count as Real Jira evidence.

Marketplace V1 Condition release suite

The current release contract contains 24 generated Condition scenarios:

  • 16 identity / Rule Initiator scenarios;

  • 7 option-backed scenarios;

  • 1 Status scenario.

The final Staging execution completed:

24 passed
0 failed
0 skipped

The older 28-scenario count is obsolete. Four historical User Picker group/Project Role membership cases were removed from the Marketplace V1 product contract after the security/privacy hardening. They are not counted as passes or skips.

Current guided source coverage

The guided validation code includes coverage for:

  • text and paragraph conditions;

  • option-backed sources including Priority and select families;

  • Multi Select and Checkboxes;

  • Cascading Select;

  • Components and Versions/entity adapters;

  • Load only, Change only and Load and change;

  • All and Any condition groups;

  • multiple properties affecting the same target;

  • rule precedence and withdrawal;

  • Rule Initiator fixed-user, user-field, group and Project Role scenarios;

  • User Picker direct-user/set transitions;

  • stale asynchronous result protection;

  • Status changes;

  • tab visibility in the broader guided-smoke family.

Number, Date, Datetime and Boolean are implemented in the condition model; their expanded Real Jira matrices are tracked separately in Tested Capabilities and Verification Coverage and Gaps.

Requiredness and safe transitions

Before creating a scenario that clears a source, the runner checks requiredness.

Source state

Result

Optional

Populate and clear transitions can be generated

Required

Empty transitions and empty operators are omitted

Unknown

Empty transitions are omitted conservatively

Required or unknown with no safe alternative

The source is skipped with a visible reason

A skipped source must not be replaced with an unrelated field merely to manufacture a passing test.

Guided execution lifecycle

Only one generated Condition Behavior is published in the tested context at a time.

Prepare suite
     |
     v
Create generated drafts
     |
     v
Publish current test only
     |
     v
Execute native Jira transition/value change
     |
     v
Assert target effect
     |
     v
Unpublish current test
     |
     v
Continue
     |
     v
Delete suite and audit cleanup

The final Marketplace V1 run required all 24 contracts to complete with zero failure/skip and cleanup confirmation.

Evidence rules

A result should distinguish:

  • local automated test success;

  • lint/build success;

  • non-production deployment;

  • Real Jira/Staging execution;

  • skipped scenarios with a documented reason;

  • final cleanup/restoration.

A skipped scenario is not a pass. Likewise, a harness failure is not automatically a product failure; the cause must be classified and the actual scenario rerun before changing the capability result.

Last updated: