The extension is deprecated and this page is accessible only for historical reasons.
Please do not try to download and/or contact us regarding this extension.
Changes a field when another field was changed without manually executing workflow action
What it does
This Plugin is an example how to use the SaveHook extension. It could be used to change a field
when another field of a work item was changed (to a special value).
It can be configured for each type of work item. It is possible to execute the Plugin only when _saving_
a work item.
How to install
!!THIS PLUGIN ONLY WORKS WITH THE "SAVEHOOK" EXTENSION!!
- Open the config directory of the "Savehook" extension: # $POLARION_INSTALL_PATH/polarion/plugins/com.polarion.technisat.plugin.pop.savehook/config
- There you could find the file "plugin.properties". Open the file and add the line (if not already exists): externalplugins=com.polarion.technisat.savehook.fieldchange
- If the property "externalplugins" was already set with another plugin just add "com.polarion.technisat.savehook.fieldchange" with a seperating ",":externalplugins=com.polarion.technisat.savehook.plugintest, com.polarion.technisat.savehook.fieldchange
- Now you have to copy the directory "com.polarion.technisat.savehook.fieldchange" of the extension to # $POLARION_INSTALL_PATH/polarion/plugins/
- The copied directory "com.polarion.technisat.savehook.fieldchange" contains a directory "config" with a "plugin.properties" file.
- This file MUST be configured to make the Plugin working.
Explanation of variables:
workitemtype=defect <-- Work item type for which the plugin should be executed.
workitemstatus=all <-- Work item status for which the plugin should be executed ('all' for every status).
startfield=assignee <-- Work item field which must be changed to execute get the plugin executed.
startfieldvalue= <-- Work item field value to which the value of "startfield" was changed. Only if changing the
value to this value the plugin get executed. Let it empty if the value does not matter.
changingfield=status <-- Work item field which should be changed.
changingvalue=assigned <-- Work item field value to which the field "changedfield" should be changed.
Examples
This configuration sets the work item status of a defect to "assigned" when a Assignee was set and the status
of the defect was "New". This simply saves one click.
workitemtype=defect
workitemstatus=new
startfield=assignee
startfieldvalue=
changingfield=status
changingvalue=assigned
This configuration sets the priority of a defect to 1.0 (or highest) when the severity was set to "Blocker".
workitemtype=defect
workitemstatus=all
startfield=severity
startfieldvalue=blocker
changingfield=priority
changingvalue=1.0
Help
If there are any questions please write me an e-mail to: s.frenzel@technisat.de
Tested on Polarion 2012
- I have not tested the pluing for older versions of Polarion.
Limitations
At the moment the extension only execute other exensions when _saving_ a work item and not at _creation_.
The next version of this extension will support also the possibility the execute custom code when a work item
is created.
Special Thanks
A special thanks go out to Benjamin Engele for pointing out the possibilty to "hook" into the "save" method of Polarion and
my colleague Robert Kirschner for testing this extension and solving errors.
Enjoy...
Sandro Frenzel
TechniSat Digital GmbH