{% extends "base.html" %} {% from "_sidebar.html" import toggle, rail, worst %} {% from "_when.html" import when, changed, sort_field %} {% from "_completeness.html" import entity_header with context %} {% from "_refs.html" import prov_chip, prov_bind, plan_refs with context %} {% block title %}{{ t.id }} · tkt ui{% endblock %} {% set kinds = {'decision': 'Decisions', 'doc': 'Docs', 'gotcha': 'Gotchas', 'code': 'Code'} %} {% block main %} {% set parent = t.parentEpicSummary %}
{# #385: the status before the id, and the header bar in its colour #}

● {{ t.status | replace('_', ' ') }}{% if t.blocked %}blocked by {{ t.blockers | join(', ') }}{% endif %}{{ type_icon(t.type) }}{{ t.id }} {{ t.title }}

{% if t.description %}

{{ t.description }}

{% endif %}
{# #431: a done ticket says where it shipped; the payload's newest release, its own words on hover #} {% if t.status == 'done' and b.memberOf %}{% set mo1 = b.memberOf.releases[0] if b.memberOf.releases else none %} {% set more = (' +' ~ (b.memberOf.releases | length - 1)) if b.memberOf.releases | length > 1 else '' %} {% if mo1 and mo1.status in ('planned', 'active') %}◷ planned {{ mo1.version or mo1.id }}{{ more }} {% elif mo1 and mo1.id %}⬆ shipped {{ mo1.version or mo1.id }}{{ more }} {% elif mo1 %}⬆ shipped {{ mo1.version }}{{ more }} {% elif b.memberOf.unreleased %}not shipped{% endif %}{% endif %} {{ t.type }} {% if b.live %}⟳ {{ b.live.status | replace('_', ' ') }} in {{ b.live.branch or b.live.worktree }}{% endif %} {% if t.priority and t.priority != 'none' %}{{ t.priority }}{% endif %} {% for g in t.groups %}{{ g }}{% endfor %} {% for l in t.labels %}#{{ l }}{% endfor %} {% if t.value %}◆ value {{ t.value }}{% endif %} {{ (t.estimate ~ ' pts') if t.estimate is not none else 'unestimated' }} created {{ when(t.createdAt, 'created') }} · updated {{ when(t.updatedAt, 'updated') }} {% if t.type == 'epic' %}board tree{% endif %} graph ↗
{% set a = b.effectiveRepoAnchor %} {% if a and a.repo %}
repo {{ a.repo | replace('https://', '') }} {% if a.branch %}branch {{ a.branch }}{% endif %} {% if a._source and a._source.repo %}from {{ a._source.repo }}{% endif %} {% if not a.verifiedAt %}unverified{% endif %}
{% endif %} {{ entity_header(b.guard.completeness) }}
{% if b.has_blockers %} {% endif %}
{% set ac = t.acceptanceCriteria %}

Acceptance criteria {{ ac.done }}/{{ ac.total }}

    {% for i in ac['items'] %}
  • {{ '✓' if i.done }}{{ md(i.text) }}
  • {% endfor %}

Read-only: tick a box with tkt ticket ac check {{ t.id }} N.

Ticket

{% if t.valueRationale %}

Why {{ t.valueRationale }}

{% endif %}
{{ md(body) }}

Context references {{ b.context_references | length }} · {{ b.meta.resolved_reference_count }} resolved

{% for kind, label in kinds.items() %} {% set rs = refs | selectattr('kind', 'equalto', kind) | list %} {% if rs %}

{{ label }} {{ rs | length }}

    {% for r in rs %}{% set res = r.resolution %}
  • {{ {'resolved': '✔', 'not_found': '⚠', 'error': '⚠', 'pending_local': '⟳', 'too_large': '…'}.get(res.status, '•') }} {% if kind == 'code' %}{{ r.ref }}{% else %}{{ link(r.ref) }}{% endif %} {% if r.anchor %}› {{ r.anchor | replace('## ', '') }}{% endif %} {{ r.topic or r.title or '' }} {{ res.mode }} {# #438: where the ref comes from; only an own ref is the ticket's binding #} {{ prov_chip(r.prov) }} {{ prov_bind(r.prov) }} {% if res.content_excerpt %}
    {{ md(res.content_excerpt) }}
    {% elif res.fetch %}

    {{ res.reason or '' }} {{ res.fetch.value }}

    {% elif res.reason %}

    {{ res.reason }}

    {% endif %}
  • {% endfor %}
{% endif %} {% else %}

No context references.

{% endfor %}
{% set open_blocker = b.ticket.blocked %}{# #420: the derived mark #} {% set c = b.guard.completeness or {} %} {% set mo = b.memberOf or {'releases': [], 'milestones': [], 'unreleased': false} %}
{% endblock %}