AutoTransitionService

This service provides a way to perform Automatic Transitions depending on different criteria.

Its usage is depending on specifics settings in your Workflows.



Configuration

The configuration process is as follow :

  • Add the Class com.atlassian.jira.service.AutoTransitionService in Service Definition.
  • Perform the Service definition :

    AutoTransitionService

  • Specify its scope of analyse. It may be based on :
    • a Filter
    • a Project
    • a Project Category
  • Specify the user to use as Requester. It may differ from current user, and be define in plugin settings.
  • Update you Workflow with dedicated Transition for AutoTransitionService.
    • the workflow transition has to be marked as runnable by adding the meta-attribute : allow.auto.transition
    • the workflow transition has to be marked as restricted to a Auto Transition Service user, by specifying the GlobalPermissionCondition as Workflow Condition
    • In case of field in an associated screen, default value have to be specified.

Transition Sample

The below transition definition :
  • is reserved to AutoTransitionService
  • may be performed by user with Global Administration permission,
  • and if the Inactivity Condition on Worklog is confirmed,
  • And, as the associated screen is the "resolveissue" View, the field Resolution and Assignee have to be specified.

    Set to 1 (Fixed) for Resolution, and Assignee let to previous value (due to --unchanged-- code).
<action id="100" name="Close" view="resolveissue">
			<meta name="jira.description">Close Transition reserved to AutoTransitionService</meta>
			<meta name="jira.i18n.title">WFA_Close</meta>
			<meta name="allow.auto.transition">true</meta>
			<meta name="auto.transition.resolution">1</meta>
			<meta name="auto.transition.assignee">--unchanged--</meta>
			<restrict-to>
				<conditions type="AND">
					<condition type="class">
						<arg name="class.name">com.atlassian.jira.workflow.condition.InactivityCondition</arg>
						<arg name="onWorklog">15d</arg>
					</condition>
					<condition type="class">
						<arg name="class.name">com.atlassian.jira.workflow.condition.GlobalPermissionCondition</arg>
						<arg name="permission">admin</arg>
					</condition>
				</conditions>
			</restrict-to>