Contents
Table of Contents |
---|
...
Tip | ||
---|---|---|
| ||
You will see the last construct comes in hand when used in cycles (for, while, do-while) or when creating an issue from SIL. |
Substitution
It often happens that you need the value of a variable designated by another value. For example, we might have a custom field that specifies which what certain data other field contains certain data. The general syntax for substituting variables is:
...
Here is a list of the variables that are already defined in a SIL environment and which that you can use right away. Note that these are all standard issue fields.
...
Aside from the standard issue fields, you can also access custom fields from SIL in selecting from the one of the following three ways:
- by id, using the construct customfield_xxxxx - where xxxxx is the ID of the custom field.
- by name - don't forget to use #{ and } if the name contains spaces.
- by its alias.
Code Block | ||
---|---|---|
| ||
customfield_10000 = "http://bugs.kepler-rominfo.com/browse/TST-1"; // referencing by id External = "http://bugs.kepler-rominfo.com/browse/TST-1"; // referencing by name #{External URL} = "http://bugs.kepler-rominfo.com/browse/TST-1"; // referencing by name with spaces |
...
Note | ||
---|---|---|
| ||
If you have multiple custom fields with the same name, the JIRA Jira API returns the first one it finds. |
...