Hook: Apply Field Values from a Custom Template Work Item

 This Hook for the "Work Item Action Interceptor Framework" extension lets you apply field values from a custom Template Work Item.


This hook for the Work Item Action Interceptor Framework template lets you apply field values from a custom Template Work Item selected from a drop-down list on the Work Item Form.

This hook requires the Work Item Action Interceptor Framework (WIAIF) and Custom Enumeration Factories extensions to run.


How to Install

  • Copy the template.jar file to WIAIF's  "hooks " folder.
  • Reload the plugin from the WIAIF Interceptor Management Page or restart Polarion.
  • Add the hook to the WIAIF Properties file ( to define which Polarion Projects, Work Item Types and Fields should be affected (as comma-separated values):
    • TemplateHook.projects=PROJECT_ID
    • i.e:

How to Use

  • Add a Boolean custom field with  is_template as the ID to your target Work Item types.  
  • Add an Enumeration custom field with template_wi as the ID to your target Work Item types.  
  • Configure the Work Items' Forms to show the newly created fields.
    • <field id="is_template"/>
    • <field id="template_wi"/>
  • When you Save, the system will automatically trigger the hook and copy the values from the selected Template Work Item if a Work Item is selected in the Template Work Item field.
    • The visibility of the Template Work Item field can be restricted using Form Configuration so that it's only visible in the Draft state or only when the Work Item is initially created.


Similar functionality was also implemented as a Classic Wiki Script: Create New Work Item from a Template



What's New in Version 1.0.2

Updated February 2020

Changes for 1.0 - 1.0.2
- The Hook is now correctly triggered when a new Work Item is created.



Vendor Alexey Andrianov (ADVA Optical Networking SE)
Published Version 1.0.2 - February 2020
Price Free
Community Supported Extension This extension is not supported by Siemens PLM.
Requirements Polarion 2019 GA (3.19.0) and newer
The Work Item Action Interceptor Framework Extension
The Custom Enumeration Factories Extension

Tested with Polarion 2019 SR1 (3.19.1)

Related Extensions