- 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.
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=""/>