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