Community
Thumb_icon

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.

Description

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 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 (hook.properties) to define which Polarion Projects, Work Item Types and Fields should be affected (as comma-separated values):
    • TemplateHook.projects=PROJECT_ID
      TemplateHook.PROJECT_ID.types=WI_TYPE_ID 
      TemplateHook.PROJECT_ID.WI_TYPE_ID.fields=FIELD_ID
    • i.e:
      TemplateHook.projects=elibrary,drivepilot
      TemplateHook.elibrary.types=defect,task
      TemplateHook.elibrary.defect.fields=title,description,team
      TemplateHook.elibrary.task.fields=title,description,priority
      TemplateHook.drivepilot.types=*
      TemplateHook.drivepilot.*.fields=title,priority

 
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.

 

Information

Vendor Alexey Andrianov (ADVA Optical Networking SE)
Published Version 1.0.2 - February 2020
Categories
Price Free
17 Downloads
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