FMC Work Item Save

 This extension for Polarion makes it possible to easily run your own script files before and after saving or creating a Work Item.


This extension for Polarion makes it possible to easily run your own script files before and after saving or creating a Work Item. It's like the polarion workflow function but provides even more possibilities.

You can do a lot with this extension with just a few lines of code. You can find the following scripts as examples delivered with this extension:

  • Automatically append a prefix to a Work Item Title if the user has saved or created a new Work Item (title-prefix)
  • Check the Work Item Description for weak words and deny saving the Work Item if those weak words are found (weak-words)
  • Set custom fields automatically if some conditions are met (for example Work Item description contains specific words) (auto-severity)
  • Import/ Export information from external services (for example a PHP site) if a Work Item was created (http-import)
  • Link Work Item to other Work Items or create hyperlinks if some conditions are met (create-hyperlink)
  • Deny editing some fields (severity, priority, ...) within the Work Item after the Work Item was created (field-lock)
  • Deny/ Allow saving or creating Work Items or fields of Work Items for different reasons and independent from project settings (Saving/ Creating only allowed between 6:00 am and 6:00 pm, limit or exclude users which can save/ create) (custom-perms)
  • Add automatically the current user who has saved/ edited the Work Item as a Watcher, if the Work Item could be saved successfully (auto-watcher)
  • After a Work Item was successfully saved, create/update a hyperlink to a wiki page with status information about the current Work Item status (status-hyperlink)
  • ... Much more!



  • You can edit your scripts on the fly without having to restart Polarion. You edit or create a script and it is instantly active when you perform the next Work Item save.
  • Choose whether you want to perform an action before the Work Item will be saved (pre-hook with the option to deny saving) or after the Work Item was successfully saved.
  • The scripts will be executed if the user saves the Work Item at the GUI level, but also if you perform save() in a wiki page or if you want to save a Work Item via the web service.
  • You can specify user-friendly error messages ("Title must be at least 10 characters long"), which will be displayed to the user if you deny saving a Work Item.


What's New in Version 1.5.0

Updated April 2023

Version 1.5.0
- Feature: Updated to work with Java 17
- Examples updated to work with GraalVM JS Scripting Engine

Version 1.4.1
- Feature: This update makes the extension compatible with Log4j 2.*

Version 1.4
- Feature: Updated to work with Java 1.8

Version 1.3.1
- Bug: Fixed an issue on Linux servers using Java 8

Version 1.3
- Bug: Fixed an error if saving a Work Item without project and type

Version 1.2
- Bug: Fixed a bug where the plugin was inactive after a period of time (thread was terminated by Polarion)
- Feature: Include other JavaScript files

Version 1.1
- Bug: Fixed stack overflow if the save() method is called for a Work Item



Vendor Dirk König (Fresenius Medical Care Deutschland GmbH)
Published Version 1.5.0 - April 2023
Price Free
Community Supported Extension This extension is not supported by Siemens PLM.
Requirements Polarion 22 R1 (3.22.1) and later
Last tested with Polarion 2304 (3.23.4)

Related Extensions