# Jira preset

Jira's work-tracking objects, as entity kinds. Pass to EntityKindsProvider: `<EntityKindsProvider kinds={jiraKinds}>`. Atlassian's current help pages say "work item" where Jira used to say issue and "space" where it said project, so `issue` shows as "Work item" and `project` as "Space" (the ids keep the names Jira's API uses). Epic, sprint, board and workflow keep their own names. Change `noun` if your site still says Issue and Project.

- Registry name: `jira-preset` (`@candor/jira-preset`)
- Tier: Pro. Installing it needs a Pro, Premium or Team licence key: the person runs `npx candor-ui key <key>` themselves; never ask for the key in chat or write it to a file.
- Docs: https://candor.themethodic.com/docs/jira-preset

## Install

```bash
npx candor-ui add jira-preset
```

Run `npx candor-ui@latest init` once first (https://candor.themethodic.com/get-started.md). Without the CLI: `npx shadcn@latest add @candor/jira-preset`.
It brings in: entity-chip, fill-strings, tokens.
npm packages: lucide-react@^1.67.0.

## Example

```tsx
"use client"

import { EntityChip, EntityKindsProvider } from "@/components/candor/entity-chip"
import { jiraKinds } from "@/components/candor/jira-preset"

export default function Example() {
  return (
    <EntityKindsProvider kinds={jiraKinds}>
      <p className="flex max-w-lg flex-wrap items-center gap-2 text-sm">
        <EntityChip entity={{ kind: "project", name: "Platform (PLAT)" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "issue", name: "PLAT-142" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "epic", name: "PLAT-100 Billing rewrite" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "sprint", name: "Sprint 24" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "board", name: "Platform board" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "workflow", name: "Bug triage" }} onOpen={() => {}} />
      </p>
    </EntityKindsProvider>
  )
}
```

## Values

### jiraKinds

```ts
const jiraKinds: Record<string, EntityKindInfo>
```

### jiraNouns

Jira's nouns for LocaleProvider's `nouns`: an environment is a Jira site, which an organization owns.

```ts
const jiraNouns: Partial<NounTable>
```

## Rules for using Candor UI

- Components take plain typed data. Never pass model output as HTML or render it as a link; messages are typed blocks.
- A control that can't be used says why: wrap it in `<Locked reason="…">`, don't just disable it.
- Don't show a value you don't have: leave it out (it renders as —) rather than guess. An estimate is labelled as one.
- Nothing is pre-selected in a decision a person makes, and the agent is named from your app's data, never from model output.
- Your app's words go in `LocaleProvider`: its fixed strings in `strings`, its nouns in `nouns`; entity kinds and agent roles in `EntityKindsProvider` and `AgentRolesProvider`.
