Jira is getting a fresh new look and navigation

We’re in the process of rolling out these changes and the documentation may not match your experience. Bear with us while we update it to reflect the new changes. More about navigating the new Jira

ワークフロー トリガーのトラブルシューティング

トリガーの設定や動作に問題がある場合、以下の手順に従い問題をトラブルシューティングしてください。

一般的な問題を確認する

If you can't resolve your problem with the trigger diagnostics, check the list of common problems below for possible causes and solutions.

I can't add a trigger to a transition

原因

ソリューション

JIRA または開発ツールのバージョンが正しくない

正しいバージョンをインストールまたはアップグレードします。

開発ツールが Jira に正しく接続できない

接続の設定を確認します:

  • Jira + Bitbucket Data Center/Fisheye/Crucible: OAuth を使用して 2LO と 3LO の 2 種類のアプリケーション リンクを設定する必要があります。

  • Jira + Bitbucket/GitHub: DVCS コネクタを正しく設定する必要があります。

開発ツールとの統合に関する詳細についてご確認ください。

The work item doesn't transition

原因

ソリューション

プロジェクトが、トリガーが設定されているワークフローを使用していない

  1. Next to your project’s name in the sidebar, select More actions (•••), then Project settings. 

  2. サイドバーから [ワークフロー] を選択します。

  3. プロジェクトが、トリガーを構成したワークフローを使用していることを確認します。

You haven't saved your workflow changes where the triggers were added

トリガーを追加したワークフローに移動します。ワークフロー トランジションを表示し、表示されたトリガーを確認して公開されていることを確認します。

DVCS が Jira に到達していない

1 時間程度待ちます。1 時間後に到達していない場合は、DVCS との接続が正しく設定されていることを確認します。「開発ツールとの統合」をご確認ください。

トリガーが設定されていない、または Jira が Bitbucket/GitHub からアクセスできない場合は、最大 1 時間程度の遅延が発生する可能性があります。これは、トリガー設定にかかわらずコミット/ブランチ/プル リクエスト同期が 1 時間ごとに行われるためです。イベント処理とイベント制限の詳細についてご確認ください。

DVCS リポジトリが同期済み DVCS アカウントにリンクされていない

Navigate to the Jira administration console, then Add-ons, then DVCS Accounts. Enable your repository.

If you have not configured Bitbucket or GitHub to autolink new repositories, you may have repositories that are not enabled (i.e. linked to your DVCS account). This means that events from the unlinked repository will not be sent to Jira, hence the work item will not transition automatically, even if you have configured a trigger.

コミットが古すぎます

トランジションが生じるのは、経過日数 21 日未満のコミットのみです。これにより、一括アップロードを防止して一括トランジションが生じないようにしています。 

匿名ユーザーにはこの操作は許可されません。

開発ツールの各ユーザーを Jira ユーザーにマッピングしていることを確認します。

Certain work item operations will throw exceptions when the transition is performed by an anonymous user. These are:

  • The CreateWorkItem event (this probably relates to 'Create' or 'Create Work Item' transition in your workflow)

  • ユーザーがトランジションを実行していると仮定する 事後操作

開発ツールのイベントが Jira ユーザーにマッピングできない場合は、トリガーされたトランジションは匿名ユーザーによって実行されます。ユーザーのマッピングに関する詳細についてご確認ください

The maximum number of automatic transitions permitted for a work item has been exceeded

ワークフロートランジションが無限ループで終了していないことを確認します。

Automatic work item transition events are incorrectly suppressed by the development tool

イベントを送信できるようにリポジトリ/プロジェクト設定を変更します。

重複するイベントが送信されていた場合、ワークフローをトリガーするイベントを Jira に送信しないよう Bitbucket Data Center (Stash 3.3 ~ 3.5) リポジトリまたは Fisheye (3.5 以降) リポジトリを構成している可能性があります。複数の開発ツールでインデックスされている同一のリポジトリがある場合、Jira にリポジトリ イベントが重複して送信される可能性があります。

Jira はワークフロー トリガーを処理する際に、重複するコミット イベントおよびブランチ作成イベントを自動的に削除します。

You shouldn't suppress repository events from Bitbucket Data Center or Fisheye, unless duplicate events are causing work items to transition incorrectly.

The work item transitions, but not as expected

原因

ソリューション

グローバルトランジションにトリガーを設定しました。

Investigate how the trigger event affects work items in different statuses. Consider removing the trigger from the global transition.

We recommend that you do not configure triggers for global transitions, unless you are confident that you understand exactly how the trigger will affect the behavior of the work item. Learn more about triggers and global transitions.

Workflow conditions, validators and permissions are intentionally ignored for automatic work item transitions

何もする必要はありません。

If you were expecting workflow conditions, validators or permissions to be applied to an automatic work item transition, then please note that none of these apply. Related to this, post functions do apply to automatic work item transitions.

ワークフローが複数のプロジェクトにわたって共有されています。

トリガーをワークフローに適用したいプロジェクトと適用したくないプロジェクトがある場合、ワークフローをコピーする必要がある場合もあります。

トリガーはワークフローに適用されます。ワークフローが複数のプロジェクトにわたって共有されている場合、そのワークフロー用に設定されたすべてのトリガーが適用されることになります。

Duplicate automatic work item transition events are being sent by multiple development tools

開発ツールの1つ (またはそれ以上) のリポジトリ/プロジェクト設定を変更して、イベントが送信されないようにします。

複数の開発ツールでインデックスされている同一のリポジトリがある場合、Jira にリポジトリ イベントが重複して送信される可能性があります。Jira は重複するコミット イベントおよびブランチ作成イベントを自動的に削除します。

If you are not using the latest Jira version and have duplicate repository events causing incorrect work item transitions, you can configure Bitbucket Data Center (Stash 3.3 - 3.5) and Fisheye (3.5+) repositories to suppress events sent to Jira for workflow triggers.

トランジションについて記録された情報が正しくない

原因

ソリューション

開発ツールのユーザーが Jira のユーザーにマッピングされていません。

開発ツールの各ユーザーを Jira ユーザーにマッピングしていることを確認します。

If users are not mapped correctly, then the user for the work item transition will be anonymous. For more information, see the section on user mapping above.

問題を解決できない場合

If you still cannot resolve your problem, there are a number of other help resources available, including our applications forums and Atlassian community.

さらにヘルプが必要ですか?

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