Community
Thumb_plugin

Calculate Cost from Initial Estimate

 Automatically calculates a cost field based on the value entered into "Initial Estimate" and a configurable price per hour. The cost field will be automatically updated whenever the initial estimate is modified.

Description

Installation
Install the script fields extension: /polarion/extensions/extension.jsp?extension=PE-199
Copy cost.js to Polarion's scripts folder (defaults to <Polarion Installation>/scripts).
 
Extension Configuration
Create a Wiki page called script-field-config in the default wiki space and add following content:
 
{code}
scriptfield.[requirement]cost.script=cost.js
scriptfield.[requirement]cost.pricePerManhour=50
{code}
 
The {code} tags are just there to make the content of the wiki page look nicer.
  • scriptfield.[requirement]cost.script=cost.js configures that the script cost.js will be run to calculate the content of the fiel cost in requirement work items.
  • scriptfield.[requirement]cost.pricePerManhour=50 defines how much one man hour costs, the value will be used in the script to do  the calculation.
 
Custom field configuration

You have to define a custom field that stores the calculated value for the example to work.
Add following custom field definition to the configuration of the requirement custom fields:

<field id="cost" type="currency" name="Cost" description=""/>
 

Information

Vendor Ben Gleei (Siemens PLM)
Published Version 1.0 - January 2014
Categories
Products
Price Free
296 Downloads
Community Supported Extension This extension is not supported by Siemens PLM.
Requirements
  • Polarion 2010
  • Script fields extension