> For the complete documentation index, see [llms.txt](https://docs.kangal.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kangal.dev/tr/entegrasyonlar/jira.md).

# Jira

Jira driver'ı kimliği Jira `myself` endpoint'i üzerinden doğrular; account ID, display name ve active bilgisini kaydeder. OAuth veya email/API-token authentication kullanabilirsiniz.

## Zorunlu değerler

| Authentication      | Configuration       | Secret         |
| ------------------- | ------------------- | -------------- |
| OAuth               | `site_url`          | `access_token` |
| Atlassian API token | `site_url`, `email` | `api_token`    |

Örnek site URL: `https://acme.atlassian.net`.

## Provider hazırlığı

1. Yönetilen authorization için OAuth seçin veya Atlassian API token oluşturun.
2. Şirket politikanızın izin verdiği minimum Jira erişimine sahip ayrı bir hesap kullanın.
3. Hesabın aktif ve organization policy tarafından engellenmemiş olduğunu doğrulayın.

## Admin Integration API ile yapılandırma

`admin` veya `super_admin` bearer token kullanın; katalog, kurulum ve manuel sync isteklerinde hedef tenant'ı seçin:

```bash
export KANGAL_URL='https://kangal.example.com'
export KANGAL_ADMIN_TOKEN='kangaladm_...'
export KANGAL_TENANT_ID='tenant-acme'

curl -fsS \
  -H "Authorization: Bearer $KANGAL_ADMIN_TOKEN" \
  "$KANGAL_URL/api/v1/admin/integrations?tenant_id=$KANGAL_TENANT_ID" \
  | jq '.items[] | select(.definition.slug == "jira")'
```

Jira'yı email/API-token authentication ile kurun:

```bash
curl -fsS -X POST \
  -H "Authorization: Bearer $KANGAL_ADMIN_TOKEN" \
  -H 'Content-Type: application/json' \
  "$KANGAL_URL/api/v1/admin/integrations" \
  -d '{
    "slug": "jira",
    "tenant_id": "tenant-acme",
    "config": {
      "site_url": "https://acme.atlassian.net",
      "email": "jira-sync@acme.example"
    },
    "secrets": {
      "api_token": "REDACTED"
    }
  }' | jq
```

OAuth için `config.email` alanını kaldırın ve `secrets.api_token` yerine `secrets.access_token` gönderin. Kurulum isteğinde inline `secrets` veya Jira kapsamlı `secrets_ref` kullanılabilir; ikisi birlikte gönderilemez.

Create cevabındaki `installation.id` değerini alıp manuel sync çalıştırın:

```bash
export JIRA_INSTALLATION_ID='create-cevabindaki-installation-id'

curl -fsS -X POST \
  -H "Authorization: Bearer $KANGAL_ADMIN_TOKEN" \
  -H 'Content-Type: application/json' \
  "$KANGAL_URL/api/v1/admin/integrations/$JIRA_INSTALLATION_ID/sync?tenant_id=$KANGAL_TENANT_ID" \
  -d '{"reason":"Jira erisimini dogrula"}' | jq
```

Kurulum adımı genel request envelope'unu, tenant scope'unu ve secret kaynağını doğrular. Worker, Jira'nın zorunlu alanlarını ve provider bağlantısını manuel sync çalışırken doğrular.

## Sık karşılaşılan hatalar

* **401:** Email/token çifti veya OAuth token geçersiz.
* **403:** Kimlik Jira veya organization policy tarafından engelleniyor.
* **404:** Site URL hatalı.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kangal.dev/tr/entegrasyonlar/jira.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
