The Post-Function configuration may be done in XML in Workflow descriptor as follow :
<post-function> <function type="class"> <arg name="class.name">com.atlassian.jira.workflow.function.InheritAffectedVersionsFunction</arg> </function> </post-function>