When you add this post-function to a transition and trigger the transition, the add-on adds the value(s) of the selected multi-valued field to the same field of the issue's parent issue.
Conditional execution
To execute this post-function based on the result of a groovy expression see Conditional execution using Groovy expression.