# Jira integration

Link a Jira Cloud project to a docket project, and its Jira tickets show up in docket. You book
time on them in docket, and the hours can flow back into Jira.

---

## What you get

- Jira issues appear as read-only tickets with their Jira key (e.g. `ABC-123`) and a link back to
  Jira.
- Time you book on them in docket is written to the issue's Jira worklog under your name.
- Time logged directly in Jira shows up in the project's **Controlling**, read-only; it counts in
  budgets and reports only if you turn it into docket time entries.
- **Workload** shows how many Jira tickets are assigned to each person.
- Planning stays in Jira: by default, the **Tickets** tab shows the Jira issues and the **Boards**
  and **Roadmap** tabs are hidden.

Whether time flows to Jira at all is set per project. Tracking Jira tickets in docket without
writing anything back works too (see [time-sync settings](https://docket.rocks/en/docs/jira-project-linking)).

---

## Who does what

| Step | Who | Where |
|---|---|---|
| Create the service-account token and connect the Jira site | Admin, once | [Set up the connection](https://docket.rocks/en/docs/jira-setup) |
| Connect your own Jira account | Every team member, once | [Set up the connection](https://docket.rocks/en/docs/jira-setup) |
| Link a docket project to a Jira project | Project manager, per project | [Link a project](https://docket.rocks/en/docs/jira-project-linking) |
| Book time on Jira tickets | Everyone, daily | [Link a project](https://docket.rocks/en/docs/jira-project-linking) |

---

## Before you start

1. **A Jira Cloud site** (e.g. `https://yourcompany.atlassian.net`).
2. **A service account** in Jira (ideally a dedicated "bot" account) that may *browse* the projects
   you want to link. You need its email and an API token.
3. **Each team member's own Atlassian account**, so their time is logged in Jira as *them*.
4. In docket: **admin** rights to create the connection, **project manager** rights to link a
   project.

---

## Where to go next

- **[Set up the connection](https://docket.rocks/en/docs/jira-setup)**: connect your Jira site, and each team member's
  Jira account.
- **[Link a project and track time](https://docket.rocks/en/docs/jira-project-linking)**: linking, the time-sync
  switches, changing your mind, and everyday use.
- **[Sync behaviour & troubleshooting](https://docket.rocks/en/docs/jira-sync-behaviour)**: how often docket syncs, how
  double bookings are prevented, how issue types and statuses are handled, and what to do when
  something looks wrong.