Confirm story points are being read
You do not normally need to configure the field ids. Prism discovers them
from Jira's own /rest/api/2/field registry on every run: it collects every
field whose name is "Story Points" or "Story Point Estimate", then every field
whose name merely contains "story point", and treats them as an ordered
candidate list — coalescing per issue, first non-null wins. That design is
deliberate, because on a large Jira each project configures its own fields and
several story-point customfields coexist with different projects populating
different ones. The sprint field is discovered the same way.
So the task here is not to find the ids. It is to confirm the discovery found something, because the failure is quiet: with no story-points field, the ingest succeeds, issues arrive, every point lands null, and nothing errors. Question counts stay right while anything about points is silently empty.
Two places tell you, and neither needs Jira access of your own. The
diagnostic bundle carries the candidate
list as story_points_candidates under the Jira source's source_check, with
"warning": "no_story_points_field_found" beside it when issues are visible
and the list is empty. The self test's own Jira line does not show it: the
probe passes, because the source is degraded, not broken (the reason above).
If the app is down, run the Jira check job, which makes the same probe without the app:
kubectl create job -n <namespace> probe-jira --from=cronjob/<release>-jira-check
kubectl logs -n <namespace> job/probe-jira | grep '^jira check:' # once its pod has run
That line is jira check: PASS or FAIL followed by the probe's detail, with
the same story_points_candidates and warning as the bundle. On a FAIL,
read its fault first: some faults stop the probe before it reads the field
list, and then story_points_candidates is missing. Delete the job before you
run it again: kubectl delete job -n <namespace> probe-jira.
While Jira's engine mode is off or shadow
(the three modes), the Jira
ingest pod's log names the list too:
jira ingest: Server @ https://jira.example.com | points candidates=['customfield_10004'] sprint=customfield_10007
with WARNING: no story-points fields found logged just before it when the
list is empty. In authoritative, the chart default since 0.10.0, that pod
runs the ingest engine, which prints neither line.
A matching name is not the same as the right field
Discovery matches on the field's name, and on a large instance more than one name matches while only one of them holds this issue's story points. Two shapes turn up repeatedly, and both are wrong in the same direction:
| field | what it actually is | what it does to your figures |
|---|---|---|
Total Story Points | a rollup onto the epic | where the epic has it and Story Points is null, the epic records its children's aggregate as its own — and Prism ingests those children too, so every sum counts them twice |
Original story points | the estimate before re-pointing | the wrong number by construction for "what did this team deliver", and indistinguishable from the right one once it is in the column |
Neither shows up as an error. The issue counts stay right, the points column stays populated, and only the arithmetic is wrong. So on an instance with more than one match, check which fields discovery found before trusting the numbers — and if the extras are wrong rather than merely redundant, name the right one explicitly below.
To override discovery, set ingest.jira.storyPointsField to a comma list of
customfield_NNNNN ids. It replaces the discovered list rather than being
added to it — the ids you name are the only ones that count, in the order you
write them, and nothing discovered can supply a value behind them. That is the
lever for the case above. Issues copied before you change it keep the points
they were given until they next change in Jira.
Changed in 0.9.0. It used to be prepended, which sounds like a stronger version of the same thing and is not: every discovered field stayed in the chain and supplied a value wherever the ids ahead of it were null. On an instance whose exact match already sorted first, setting the override changed nothing at all.
Leave it empty and discovery behaves exactly as described above, which is the normal case.
For a Jira context stream you registered under a name of its own, the chart
value does not apply. Set that stream's story_points_fields when you register
it, or later with Edit parameters… on the stream's page: the same list, with
the same rule.
To read the ids off Jira yourself:
curl -sS -H "Authorization: Bearer <PAT>" "<your Jira base URL>/rest/api/2/field" \
| grep -io '"id":"[^"]*","key[^}]*story point[^}]*'
If points are still null with a candidate list present, the likeliest cause is that the issues in the window simply have no points on them — check one in Jira before raising it.
And to answer "did the wrong field supply them?" — the question the table above raises — open the Jira stream on Admin → Context streams. After a run of the ingest engine, its Overview shows two lines:
- Discovered fields: the field ids the last run read story points (and the sprint) from, in order. Where you set an override, these are your ids.
- Fields the last run read: how many records each of those fields supplied points to, and then, per project, which field supplied them. Projects on a field other than the most used one come first; past 25 projects the rest are counted, not named.
These counts cover only the records that run copied. A project with no issue in
that run is not listed, and neither is an issue with no points in any of the
fields. A field you did not expect shows in the totals. The page shows field
ids: Jira's /rest/api/2/field lists every field's id beside its name. While
Jira's engine mode is off or shadow, the two lines are absent and the pod
log line above names the list instead.
For the built-in Jira stream, the upstream probe reports the chain before any
ingest has run:
story_points_candidates is the chain the ingest will coalesce over,
story_points_discovered is what discovery found regardless of your override —
so an override that names the wrong id is visible as the difference between
them.