Supported
Thumb_velocity_form_extension

Velocity Work Item Form Extension

 Custom Velocity-based forms for Work Items

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

Allows rendering of custom panels with content defined by scripts that combine Velocity, HTML and other scripting technologies...  right on the Work Item form

 

How to install

  1. Download and unzip the packaged extension.
  2. Move the content of the zip file com.polarion.alm.velocityform_<version>.zip into: 
    <Polarion Installation Folder>/polarion/extensions/.
  3. Restart Polarion.

 

How to use

  1. Create the report using Velocity.
  2. Save the file with the script (i.e. my_script.vm) in folder
    <Polarion Installation Folder>/scripts/.
  3. Go to the Administration - Work Items - Form Configuration.
  4. Add/Edit Form Layout of the Work Item type you want to add the Velocity Form to.
  5. Add a line defining the extension with parameters:
    1. id - always "velocity_form", 
    2. label - choose how the form will be labeled, 
    3. script - provide name of the file with the script that should be processed and rendered.

EXAMPLE: <extension id="velocity_form" label="Test Form" script="my_script.vm"/>

 

Useful Tips

  • The Velocity Context allows access to the usual objects of the Open API - $trackerService
    • it also allows access to the Rendering API - $transaction
    • it contains reference to the current Work Item it is being used on - $object.
  • To check for access rights and persistence of the Work Item, use:
    • #if(!$object.isUnresolvable() && $object.isPersisted()).
  • To get the Rendering API version of the Work Item, use:
    • #set($wi = $transaction.workItems().getBy().oldApiObject($object)).

 

Information

Vendor Siemens PLM
Published Version 1.0.3 - June 2017
Categories
Price Free
67 Downloads
Supported by Siemens PLM This extension is supported by Siemens PLM for customers with a current support/maintenance agreement.
Requirements