Link to Bitbucket Issue Tracker from Commits

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

Platform Notice: Server only. This article only applies to Atlassian products on the Server platform.

サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

目的

This article should help users' commit text to link to their Bitbucket issues when they reference them in the form of "#1234"

ソリューション

If you want commit text to link to your Bitbucket issues when you reference them in the form of "#1234" for example, here's how you do it:

  1. Open your repository window
  2. Click 'Settings' in the toolbar
  3. Click 'Advanced'
  4. In the 'Commit Text Replacements' section, click 'Add'
  5. Select 'Other' for Replacement Type
  6. In the Regex Pattern field, enter "#(\d+)($|[^a-zA-Z0-9-])"
  7. In the Replace With field:
    1. On Mac, enter "<a href="https://bitbucket.org/your_username/your_project/issue/$1/">#$1</a>$2"
    2. On Windows, enter https://bitbucket.org/your_username/your_project/issue/$1
  8. Click OK twice
  9. Re-select the log item which has a mention of the #12345 style issue number, it should now be linked to the issue.

Note: this general pattern will work for any issue tracker that follows a similar pattern just by changing the URL structure.
最終更新日: 2025 年 1 月 28 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.