> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/autofix-to/configure/automatically-add-jira-ticket-ids-to-autofix-pr-titles.md).

# AutoFix PRのタイトルにJiraチケットIDを自動追加する

## それは何ですか？

Aikidoでautofix PRを有効にすると、タイトルにJiraチケット参照を自動的に含められます。Jiraとの完全な統合はSCMに依存します。

Aikidoのautofix機能は、次を使用してPRタイトルにJiraチケットIDを挿入できます `$TASK_REF`、セキュリティ修正と課題管理の間の追跡可能性を効率化します。

{% hint style="info" %}
`$TASK_REF` は次で使用できます **PRタイトル**, **ブランチプレフィックス** および **コミットメッセージ**
{% endhint %}

## ユースケース

* PRを自動リンクして、Jiraでのセキュリティ修正の可視性を向上させます。
* 各autofix PRが正しいJiraチケットに関連付けられていることを確認します。
* SCM全体でPRとJiraチケット間のクリック可能な参照を有効にします

## 有効化方法

**GitHub → Jira**

**ステップ 1:** インストール [**GitHub for Jira**](https://github.com/marketplace/jira-software-github) GitHub Marketplaceから。

**ステップ 2:** リンクしたいリポジトリへのアクセスを許可します。

**ステップ 3:** Jira Cloudでは：

* 移動先 **アプリ → アプリを管理 → GitHub for Jira → 設定**.
* GitHub組織に接続します。

**ステップ 4:** Aikidoでは、次を使用します `$TASK_REF` PRタイトルの設定で。

**ステップ 5：** Jiraチケットキー：

* Jira内でクリック可能なリンクとして表示されます。
* GitHubのUIに表示されます（Jiraで表示するとクリック可能です）。

***

**GitLab → Jira**

**ステップ 1:** GitLabでは：

* プロジェクトへ移動 → **設定 → 統合 → Jira**.
* 次を入力します：
  * **Jira URL**: `https://yourcompany.atlassian.net`
  * **ユーザー名**: あなたのAtlassianメールアドレス
  * **パスワード/APIトークン**: Atlassianアカウントから生成

**ステップ 2:** 統合を保存します。

**ステップ 3:** Aikidoでは、次を使用します `$TASK_REF` PRタイトルの設定で。

**ステップ 4:** Jiraチケットキー：

* GitLabのUIで自動リンクされます。
* Jiraの開発パネルを更新します。

***

**Bitbucket → Jira（Cloud）**

**ステップ 1:** Bitbucket Cloudでは：

* 移動先 **設定 → リンク済みリポジトリ → Jiraプロジェクトをリンク**.
* Atlassianアカウントにサインインし、Jiraプロジェクトを選択します。

**ステップ 2:** Aikidoでは、次を使用します `$TASK_REF` PRタイトルの設定で。

**ステップ 3:** Jiraチケットキー：

* BitbucketのUIで自動リンクされます。
* Jiraの開発情報パネルに表示されます。

***

**Azure DevOps → Jira**

**ステップ 1:** Azure DevOpsとJiraの間に、次のようなコネクタをインストールします：

* TFS4JIRA
* [Git Integration for Jira](https://marketplace.atlassian.com/apps/4984/git-integration-for-jira-azure-devops-github-gitlab)
* Exalate

**ステップ 2:** 選択したコネクタで、Azure DevOpsとJiraの両方のアカウントを認可します。

**ステップ 3:** コネクタを設定して、チケットパターンを認識させます（例： `ABC-\d+`).

**ステップ 4:** Aikidoでは、次を使用します `$TASK_REF` PRタイトルの設定で。

**ステップ 5：** Jiraチケットキー：

* PRをJiraにリンクし、Jiraの開発パネルに表示されます。


---

# 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://help.aikido.dev/docs/docs-ja/autofix-to/configure/automatically-add-jira-ticket-ids-to-autofix-pr-titles.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.
