Class UpdateNotNullIssueFieldFunction
java.lang.Object
com.atlassian.jira.workflow.WorkflowFunctionUtils
com.atlassian.jira.workflow.function.issue.AbstractJiraFunctionProvider
com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction
com.atlassian.jira.workflow.function.issue.UpdateNotNullIssueFieldFunction
- All Implemented Interfaces:
FunctionProvider
-
Field Summary
Fields inherited from class com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction
DEFAULT_VALUE, UNASSIGNED_VALUEFields inherited from class com.atlassian.jira.workflow.WorkflowFunctionUtils
ORIGINAL_ISSUE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTakes a name (vars.key) of a transient var in the args map If the modified fields of the issue contains that the field id stored in "vars.key" set the field value as the field.value and call the super method to update the issue field function.Methods inherited from class com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction
makeDescriptorMethods inherited from class com.atlassian.jira.workflow.function.issue.AbstractJiraFunctionProvider
getIssueMethods inherited from class com.atlassian.jira.workflow.WorkflowFunctionUtils
getCaller, getCallerKey, getCallerName, getCallerUser, getCallerUserFromArgs, getUserByKey, populateParamsWithUser, populateParamsWithUser
-
Constructor Details
-
UpdateNotNullIssueFieldFunction
public UpdateNotNullIssueFieldFunction()
-
-
Method Details
-
execute
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws WorkflowException Takes a name (vars.key) of a transient var in the args map If the modified fields of the issue contains that the field id stored in "vars.key" set the field value as the field.value and call the super method to update the issue field function.- Specified by:
executein interfaceFunctionProvider- Overrides:
executein classUpdateIssueFieldFunction- Parameters:
transientVars- Variables that will not be persisted. These include inputs given in theWorkflow.initialize(java.lang.String, int, java.util.Map)andWorkflow.doAction(long, int, java.util.Map)method calls. There are a number of special variable names:entry: (object type:WorkflowEntry) The workflow instancecontext: (object type:WorkflowContext). The workflow context.actionId: The Integer ID of the current action that was take (if applicable).currentSteps: A Collection of the current steps in the workflow instance.store: TheWorkflowStore.descriptor: TheWorkflowDescriptor.
Register), will also be available in the transient map, no matter what. These transient variables only last through the method call that they were invoked in, such asWorkflow.initialize(java.lang.String, int, java.util.Map)andWorkflow.doAction(long, int, java.util.Map).args- The properties for this function invocation. Properties are created from arg nested elements within the xml, an arg element takes in a name attribute which is the properties key, and the CDATA text contents of the element map to the property value.ps- The persistent variables that are associated with the current instance of the workflow. Any change made to the propertyset are persisted to the propertyset implementation's persistent store.- Throws:
WorkflowException
-