Auto Transition Listener

In our support site we had a problem where customers were not transitioning their issues, they were simply commenting on their issues. This would leave them in the wrong state.
So I created the listener. It listens for a given event on an issue, and then performs a transition.

To add the listener:

  1. Add the Toolkit as per instructions.
  2. Go to the Listener section in the Administration Area.
  3. Add a listener of class:
    com.atlassian.jira.toolkit.listener.AutoTransitionListener
  4. Configure it as below

The following is a list of the configuration parameters (All parameters are compulsory):

  • Project - The project to listen on
    Simply insert the project key. E.g. JRA
  • Status ID - Only do it to issues in a certain status
    Insert the id of the status the issue needs to be in. The Default JIRA workflow status are:

    Status ID

    Status Name

    1

    Open

    3

    In Progress

    4

    Reopened

    5

    Resolved

    6

    Closed

  • Action ID - The transition to do
    The OSWorkflow Action Id. Easiest way to find this out is click on the transition in the Workflow editor. The URL will contain a parameter workflowTransition=. The value of that is the Action ID.
  • Event ID - The event to listen for
    The events are:

    Event ID

    Event

    1

    Created (Does not work)

    2

    Updated

    3

    Assigned

    4

    Resolved

    5

    Closed

    6

    Commented

    7

    Reopened

    8

    Deleted

    9

    Work Logged

    10

    Moved

    11

    Work Started

    12

    Work Stopped

    13

    Generic Event

  • Assignee - Whether to only do it if the current user is the assignee
    • true if you only want to do the transition when the person who triggered the event is the assignee of the issue
    • false if you don't care if the person is the assignee or not
  • Reporter - Whether to only do it if the current user is the reporter
    • true if you only want to do the transition when the person who triggered the event is the reporter of the issue
    • false if you don't care if the person is the reporter or not

If, after configuring the Auto Transition Listener a com.opensymphony.workflow.InvalidActionException is thrown, please refer to our JIRA Toolkit Auto Transition Listener fails due to InvalidActionException KB article for details on the fix.