public abstract class

AbstractJiraCondition

extends WorkflowFunctionUtils
implements Condition
java.lang.Object
   ↳ com.atlassian.jira.workflow.WorkflowFunctionUtils
     ↳ com.atlassian.jira.workflow.condition.AbstractJiraCondition
Known Direct Subclasses

Class Overview

Abstract base class for all JIRA workflow Conditions.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.workflow.WorkflowFunctionUtils
Public Constructors
AbstractJiraCondition()
Protected Methods
Issue getIssue(Map transientVars)
This method retrieves the original (unmodified) issue object that will be examined for the condition check.
[Expand]
Inherited Methods
From class com.atlassian.jira.workflow.WorkflowFunctionUtils
From class java.lang.Object
From interface com.opensymphony.workflow.Condition

Public Constructors

public AbstractJiraCondition ()

Protected Methods

protected Issue getIssue (Map transientVars)

This method retrieves the original (unmodified) issue object that will be examined for the condition check. In order to avoid multiple calls to the database to retrieve this object - include the original issue object in the map passed - transientVars - for example: GenericValue origianlIssueGV = ComponentAccessor.getIssueManager().getIssue(issue.getId()); fields.put(AbstractJiraCondition.ORIGNAL_ISSUE_KEY, IssueImpl.getIssueObject(origianlIssueGV)); If this method is overwriten, the logic should accommodate the retrieval of the original issue object.

Returns
  • the original issue object
Throws
DataAccessException If for some reason the issue doesn't exist.