Sample Workflow

The following is a sample plugin XML Workflow Configuration designed to work with the JIRA® DEMO: Simple Issue Tracking Workflow.

Sample Plugin XML Workflow Configuration

<workflows>
<workflow name="DEMO: Simple Issue Tracking Workflow">
  <projects>
  <project name="DEMO" key="DEMO"></project>
  </projects>
  <issue_type id="3"></issue_type>
  <status_map>
  <status name="To Do" state="Open"></status>
  <status name="In Progress" state="Open"> </status>
  <status name="Done" state="Closed"></status>
  </status_map>
  <status name="Create Issue (Integration Defined)">
  <transition type="Create">
    <transition_action id="1">
    </transition_action>
  </transition>
  </status>
  <status name="To Do">
  <transition type="Done">
    <transition_action id="21">
    <field name="Resolved" values="Yes"></field>
    </transition_action>
  </transition>
  </status>
  <status name="In Progress">
  <transition type="Done">
    <transition_action id="41">
    <!-- <field name="" values=""></field> -->
    </transition_action>
  </transition>
  </status>
  <status name="Done">
  <transition type="To Do">
    <transition_action id="51">
    </transition_action>
  </transition>
  </status>
</workflow>
</workflows>

JIRA® DEMO: Simple Issue Tracking Workflow

This table shows the following issue types IDs:

Type Label ID

Step

To Do

1

Step

In Progress

2

Step

Done

3

Transition

From To Do to Done

21

Transition

From In Progress to Done

31

Transition

From Done to To Do

51

The XML must reflect the terminology in JIRA® exactly, including letter case and spacing if any.