Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents

Table of Contents
excludeSee also

...

Configuring PCF - SIL Script custom field

...

custom field

...

...

  1. After you create the field,

...

  1. click the Configure link for this field. You will see the page like the following example:

...


  1. Image Added

...


  1. Click

...

  1. the EditSIL Script link to see the SIL editor.

Image Removed

...


  1. Image Added

  2. Click Save, and the script is associated

...

  1. with the current custom field.

...


  1. Image Added

...


  1. The value returned by the script will be the value of the custom field.


Warning

The script is read-only. You must avoid changing any issue values in the script. In fact, you may change the issue variables BUT they will not be changed (issue will not be saved). However, routines may have side effects.

...

Thread Local Caching

Note

If you are not fully aware of what this implies, it is recommended that you leave the option off.

...

Using PCF - SIL Script custom field

Go to an issue and this is how the value of the field is the value returned by the script.

Image Modified

Examples

Issue Age

Code Block
interval age = currentDate() - created;
return "This issue is " + age + " old";

...