XMLを使用してのワークフロー作成

JIRA のワークフロー エディタは JIRA のデータベースに格納されている OSWorkflow XML 定義を生成します。JIRA のワークフロー エディタで利用できない OSWorkflow ベースの機能が必要な場合、XML にワークフローを定義し、以下のように JIRA にインポートすることができます。

Once the XML workflow has been imported, JIRA's workflow editor should be able to display most OSWorkflow definitions even if it does not support creating or editing them.

For example, conditional results of workflow transitions are displayed in the Other tab on the View Workflow Transition page.

(info) The Other tab is only visible if a transition has elements that the editor does not directly support.

JIRA への XML ワークフローのインポート

To import an XML workflow into JIRA:

  1. JIRA システム管理者」 グローバル権限を持つユーザーとしてログインします
  2. Choose > Issues. Select Workflows to open the Workflows page, which displays all of the workflows in your system.
  3. Click the Import from XML button to open the Import Workflow dialog box.
  4. In the Name field, type a name (usually 2-3 words) to identify your new workflow.
  5. (Optional) In the Description field, type a detailed description of your new workflow.
  6. For the Workflow Definition  option, you can do either of the following:
    • Upload an XML workflow definition file — to do this, choose the Provide a full path to an XML file... option and in the File Path field, type the full path to your XML workflow definition file.
      (warning) This path must be local one, so your XML workflow definition file must be located on your JIRA server.
    • Paste the contents of an XML workflow definition file into JIRA — to do this, choose the Paste the workflow XML definition option, copy the contents of your XML workflow definition file and in the Workflow Definition (XML) field, paste this copied content.
  7. インポートボタンをクリックします。

システム間のワークフローをコピーする

Sometimes it is useful to create a workflow in a test system and then copy it into a production system. To do this:

  1. In the test system, export the workflow to XML by clicking the XML link next to the workflow in the list shown on the View Workflows page and save the output into a file.
  2. 本番環境で、上記のように「XML からワークフローをインポートする」リンクからファイルをインポートします。

(minus) JIRA にXML ワークフローのインポートする場合:

  • JIRA の XML ワークフロー定義には JIRA のメタ属性への参照が含まれています。例えば、各ワークフロー ステップのリンク済み JIRA ステータスの ID は「jira.status.id」メタ属性としてステップの定義に保存されます。そのため、XML でワークフローを手動で作成する場合、ワークフローを JIRA にインポートする前にすべての参照される外部エンティティが存在することを確認してください。

(minus) システム間でワークフローをコピーする場合:

  • 条件、バリデータ、事後操作は、あるシステムでは有効だが他のシステムでは無効かもしれないパラメータを持つことができます。例えば、別のシステムが「解決状況」フィールドに異なる値を含んでいるとします。「課題フィールドの更新」事後操作が、「解決状況」フィールドに、あるシステムにはあるが他のシステムにはないかもしれない値を設定するのに使用される場合に問題になります。
最終更新日 2013 年 9 月 9 日

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

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