Skip to content

jira cache resolutions

  • Usage: jira cache resolutions [flags]

Cache and print one Jira metadata resource for the active profile. Use it when completions, agents, or later commands need a local copy of resolutions.

The command serves a fresh cache entry when present. On a miss, stale entry, or --refresh, it contacts Jira, writes the per-profile cache file, and prints the cached list.

Cache

--refresh

Force a fetch even when the cache is fresh

--ttl-minutes <N>

Freshness window before automatic refresh

Default: 129600

Output fields

With --output json, the response envelope's data object carries these fields. Run jira schema for the full machine-readable schema.

Field Type Description
cache_empty boolean
cache_source_state string Disposition observed before any fetch (never the derived empty state).
cache_state string Effective disposition after the read: fresh, stale, missing, malformed, refresh, or empty.
count integer
fetched_at string (date-time)
from_cache boolean
profile string
resolutions array The cached resolutions list, served from disk or a fresh fetch.

Examples

jira cache resolutions # (1)!
jira cache resolutions --refresh # (2)!
jira cache resolutions --output=json # (3)!
  1. Use the cache if fresh, otherwise fetch from Jira
  2. Force a re-fetch even when the cache is fresh
  3. Return the cached list in a parseable shape