Care must be taken when defining post function(s) that depend on the value set by another post function in the same transition.
The order are of special importance, and for the Create transition, any post function must be placed after the actual creation of the issue.
Example: When an issue is created (transition: Create) we want the following to happen:
- Automatically Assign an object to a Insight custom field (in this example, the object assigned will have an attribute of type: Jira User)
- Automatically set the assignee for the created Issue to: the Jira User attribute of object assigned in step 1.
- Automatically set a Jira User picker for the created Issue to: the Jira User attribute of object assigned in step 1.
This can be done by combining the following post functions:
- Assign Objects from an IQL query based on data from an issue.
- Assign Issue based on attribute in a selected Insight Object.
- Set a Jira custom field with the attribute value from a selected object.