Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Purpose

Hosting

Compatible Tools

Calculated Fields

Use this script to sum the values of number fields on the form and place the result in a destination field.

Cloud

Any scripting tool, such as JMWE, Power Scripts or Scriptrunner, that uses Groovy.

Script

 

Installation instructions

Possible use cases

Calculations can be particularly useful when used with financial forms such as purchase orders and expense claims.

Limitations

  • Will override the value in the destination field with the sum of all fields set in the fieldNames variable.

  • Only works with number fields.

  • The script will run on all copies of the indicated form on the issue.

  • The destination field and all fields that will be summed must be on the same form, and on the same issue.

  • The form will need to be open, or re-opened in order for the script to populate the destination field.

  • Note that this script will not work if the form is over 32 KB. You can limit the size of your forms by using multiple smaller forms, and by including character/word limits on your text fields.

  • No labels