Getting and Setting Custom Fields
Implicit Context
Whenever reading or storing a custom field value, the SIL Engine must be given an issue context so that it can connect those values to an issue. In most scripting environments (such as a listener or a custom workflow), the context is already provided.
Getting a Custom Field Value by Id
string value = customfield_1234; |
Getting a Custom Field Value by Name
string value = #{custom field name}; |
Setting a Custom Field Value by Id
customfield_1234 = value; |
Setting a Custom Field Value by Name
Explicit Context
There are times when you must explicitly declare the context of an issue. This is especially useful when looping through an array of issues.
Getting a Custom Field Value by Id
Getting a Custom Field Value by Name
Setting a Custom Field Value by Id
Setting a Custom Field Value by Name
When setting custom fields using an explicit context, you must surround the issue variable with percent signs.
Additional Help
Need help implementing this script? Talk to me directly to me by clicking on the bot on this page.
Related articles
Filter by label
There are no items with the selected labels at this time.