Contents
Table of Contents | ||
---|---|---|
|
...
Configuring PCF - SIL Script custom field
...
custom field
...
...
- After you create the field,
...
- click the Configure link for this field. You will see the page like the following example:
...
...
- Click
...
- the EditSIL Script link to see the SIL editor.
...
- Click Save, and the script is associated
...
- with the current custom field.
...
...
- 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.
Examples
Issue Age
Code Block |
---|
interval age = currentDate() - created; return "This issue is " + age + " old"; |
...