Class AbstractJiraFunctionProvider

java.lang.Object
com.atlassian.jira.workflow.WorkflowFunctionUtils
com.atlassian.jira.workflow.function.issue.AbstractJiraFunctionProvider
All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider
Direct Known Subclasses:
AssignToCurrentUserFunction, AssignToLeadFunction, TriggerWebhookFunction, UpdateIssueFieldFunction

@PublicSpi public abstract class AbstractJiraFunctionProvider extends WorkflowFunctionUtils implements com.opensymphony.workflow.FunctionProvider
Abstract base class for all JIRA workflow FunctionProviders (eg. post-functions).

For JIRA FunctionProviders implementing the method:

     public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException;
 
  • The 'transientVars' parameter will be populated with values specific to only this invocation, eg. the current user and issue.
  • The 'args' parameter will be populated with static configuration values set when the function was first added. Contents are partly source from the plugin factory class, via WorkflowPluginFactory.getDescriptorParams(java.util.Map)
See Also:
  • Constructor Details

    • AbstractJiraFunctionProvider

      public AbstractJiraFunctionProvider()
  • Method Details

    • getIssue

      protected MutableIssue getIssue(Map transientVars) throws DataAccessException
      This method retrieves the (potentially modified) issue object that is being transitioned through workflow.
      Parameters:
      transientVars -
      Returns:
      the issue object representing the issue the functions shoudl modify
      Throws:
      DataAccessException - If for some reason the issue doesn't exist.