Nikasa, home Request an invite
DocsTickets from a report

Tickets from a report

Each change in report.md has a link that opens a new issue in your tracker with the change filled in. nk opens nothing and calls no tracker; you file the ticket by following the link.

On this page

The change key #

Every change has a key: nk- and 8 hex digits. It is the same in every run and every build for the same change.

Which requests showed the change is not part of the key, so the same change in another request keeps its ticket. Search your tracker for the key to find an earlier ticket. report.json gives each finding its key.

What a ticket holds #

A ticket holds only text report.md already shows.

The title #

output
[nk-6f7cf426] VALUE /response/status 200 -> 500 in 0001 GET /api/user

The 0001 numbers the request in the order the compare sent them, starting at 0000, so this is the second one. The report's word for each request is a scenario, defined in Words in a report.

The body #

The body holds:

  • the change's line;
  • the requests it showed in;
  • its key;
  • where the full report is. That is the CI run when Nikasa runs in CI (on Jenkins, only when the Jenkins URL is set).

A body is at most 2,000 characters, as long links break in browsers.

What has no ticket #

  • Unstable differences, which only some new runs showed. The Changes that show only sometimes section of Reading the report explains them.
  • Lines that count nothing. They are listed for information, such as the outside hosts a run reached, and marked told, never counted in the report.

Which tracker #

Nikasa uses the first one it finds, in this order:

  1. --tracker <url> on nk compare or nk diff.

  2. tracker: under x-nk: in the app file, your team's choice checked in:

    yaml
    x-nk:
      host: http://app:8000
      tracker: https://linear.app/acme/team/ENG
  3. A CI that knows its own project. These link on any host:

    • GitHub Actions, including GitHub Enterprise Server;
    • GitLab CI, including self-managed;
    • Azure Pipelines, opening Azure Boards work items.
  4. A CI that only knows the checkout's address: CircleCI, Bitbucket Pipelines, Buildkite and Jenkins. They link only when the repository the job checked out is on github.com or gitlab.com. On another host, set --tracker or tracker:.

The address to give #

The host says which tracker it is. Nikasa adds the new-issue page and keeps any query you give, such as ?labels=nk.

Tracker Give The link opens
GitHub https://github.com/<owner>/<repo> /issues/new
GitLab https://gitlab.com/<group>/<project> /-/issues/new
Linear https://linear.app/<workspace>/team/<KEY>, or a link ending in /new /new
Azure DevOps https://dev.azure.com/<org>/<project> A new Bug; give .../_workItems/create/<type> for another type
Jira https://<site>.atlassian.net The ticket text to paste, with its key

A tracker on your own host needs its kind beside it: tracker_kind: under x-nk:, or --tracker-kind. The kind is one of github, gitlab, linear, azure, jira or jira-link.

Jira #

On Jira, each change gives its key and ticket text to paste, as Jira documents no address for a prefilled new issue.

If you want a link anyway, Jira has an undocumented one, which can change without notice. Set tracker_kind: jira-link, with a tracker: address of this form, using numeric ids and not keys:

output
https://<site>.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=<project id>&issuetype=<issue type id>

With no tracker known #

Nothing fails. Instead:

  • each change shows its key;
  • one line under the changes says why there are no links and how to have them;
  • the ticket text of every change follows, ready to copy.

Tickets change no count and no exit status, with or without --fail-on-change.

Written for nk 0.3.14. Something wrong or unclear? Write to hello@nikasa.dev.