Fix Pre-existing Workflow Configurations in 3.1.0
SUPPORT BULLETIN
Since at least v. 2.0.1 Polarion has had a mistake in the default workflow configuration. In the Reopen action, one of the parameters of a workflow function (valid.states) has a status value "opened" as shown in the following code example:
<action id="reopen" name="Reopen">
<cleared>
<field name="resolution"/>
<field name="resolvedOn"/>
</cleared>
<functions>
<function name="LinkedWorkItemsStatusChange">
<param name="back.link.roles" value="depends_on"/>
<param name="link.roles" value="parent"/>
<param name="valid.states" value="opened,inprogress,reopened"/>
<param name="target.state" value="reopened"/>
<param name="clear.attribs" value="resolution,resolvedOn"/>
</function>
</functions>
</action>
The correct word is “open”, and this has been changed in version 3.1. If you are upgrading to that version and have an existing workflow configuration form any older version, you should check both you global configuration and any project configurations that may have been based on the default global configuration (which contained the error), and fix the configuration(s) as follows:
<action id="reopen" name="Reopen">
<cleared>
<field name="resolution"/>
<field name="resolvedOn"/>
</cleared>
<functions>
<function name="LinkedWorkItemsStatusChange">
<param name="back.link.roles" value="depends_on"/>
<param name="link.roles" value="parent"/>
<param name="valid.states" value="open,inprogress,reopened"/>
<param name="target.state" value="reopened"/>
<param name="clear.attribs" value="resolution,resolvedOn"/>
</function>
</functions>
</action>