Hook: Apply Field Values from a Custom Template Work Item

 This Hook for extension Work Item Action Interceptor Framework allows to apply field values from a custom Template WI


share this page via facebook share this page via LinkedIn share this page via Twitter share this page via Google+ share this page via email More sharing services

This Hook for extension Work Item Action Interceptor Framework allows to apply field values from a custom Template WI selected from a drop down list on the WI Form.

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


How to Install

  • Copy file template.jar to the hooks folder of WIAIF
  • Enforce a plugin reload from the WIAIF Interceptor Management Page (or restart Polarion)
  • Add the Hook to the WIAIF Properties ( 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 custom field with ID is_template of type Boolean to the WI types of your choosing
  • Add a custom field with ID template_wi of type Enumeration of type Work Item to the WI types of your choosing
  • Configure their Work Item Forms to show the newly created fields
    • <field id="is_template"/>
    • <field id="template_wi"/>
  • The Save action 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 WI field
    • The visibility of the Template WI field can be restricted using Form Configuration to i.e. only be visible in the Draft state or only during the initial WI creation


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 upon a new WI creation



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
Extension Work Item Action Interceptor Framework
Extension Custom Enumeration Factories

tested with Polarion 2019 SR1 (3.19.1)

Related Extensions