Skip to end of banner
Go to start of banner

Workflow Post Functions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

Assets And Inventory plugin lets you integrate workflows and asset objects.

 

 

1- [AIP] - Update Asset workflow postfunction

Add "[AIP] - Update Asset workflow postfunction" to the workflows to update an asset object on transition.

Please put the post function in the middle; after issue updates and before GenerateChangeHistoryFunction and Re-index post functions.


Parameters

ParamaterDescription
ConditionGroovy script for the post function condition.  Function must return true or condition must be empty to pass. If condition fails post function will be ignored.
Target Asset custom fields
Specify the custom field to update assets. Leave it blank to update all Asset custom fields.
Default groovy script
This is the default script to be executed for the options that has no specific groovy script. Type script returning the value to update asset attribute, e.g return issue.summary
Attributes to be updated (one or more)

Form: Define specific Form or select "Any form" to update the assets having the attribute.

Attribute: Target attribute to set it's value

Groovy Scripts to execute or Source Custom Field

(one for each attribute definition)

There 3 options to use as source value:

  • Use default groovy script: "Default groovy script" result will be set to the attribute value
  • Custom groovy script: Specify atrribute specific groovy script to set as value.
  • JIRA Custom field value: If issue has the specified custom field, that fields value will be assigned to the asset attribute.

 

Sample Post Function configuration page

 

You can add multiple post functions or multiple attributes for one post function.

 



  • No labels