# Connect Jira Data Center

> Connect Jira Data Center or Server with your own personal access token.

tiko supports Jira Data Center and Server 8.14 and later. It uses your own personal access token, so a Jira admin doesn't need to set anything up.

## Before you start

- Jira Data Center or Server 8.14 or later.
- The host running tiko can reach Jira. Jira Data Center is usually reachable only from the corporate network. For a corporate certificate authority, see `JIRA_CA_BUNDLE` in [Configuration](https://docs.tiko.run/configuration/).

## Connect Jira

1. Create a `.env` file next to the compose file with a key that encrypts your token on disk:

   ```bash
   echo "TIKO_SECRET_KEY=$(openssl rand -base64 32)" >> .env
```

2. Restart: `docker compose up -d` (add `-f compose.release.yml` if you run from images).

3. In Jira, open your profile → **Personal Access Tokens** → **Create token**.

4. In tiko, an admin opens **Settings → Task source** (main menu or `⌘,`), chooses the Jira provider and enters the base URL (`https://jira.example.com`).

Whoever deploys tiko can set both instead with `TIKO_TRACKER=jira` and `JIRA_BASE_URL` in the environment; Task source then shows them read-only.

5. Each person, the admin included, opens **Settings → My tracker**, pastes their own token and presses **Test connection**.

## Check it works

**Test connection** shows your Jira name.

Cards show each person what their own Jira access allows:

| Situation | What the card shows |
|---|---|
| Your token cannot see the task | "Not found or no access" |
| You have no token | The key and "Connect your Jira token to see this task" |

> **Caution: Keep `TIKO_SECRET_KEY` safe**
>
> If you change or lose it, enter the token again.

Moving the instance to another Jira URL asks everyone to enter their token again; a token is only ever sent to the URL it was entered for.

## Start and due dates

A card shows the task's start and due dates when Jira has them.

- **Due date** is Jira's own Due date.
- **Start date:** Jira has no start field of its own, so tiko reads the first filled field named Start date or Target start. Projects that keep the start in different fields both work without setup.
- **Another field name:** if your site keeps the start in a field with another name, an admin picks that field in **Settings → Task source → Start date field**.

## Other trackers

The full list, with what is planned, is in [Task trackers](https://docs.tiko.run/trackers/). What the card tool takes for Jira is in [What you can add](https://docs.tiko.run/what-you-can-add/).
