Does "attribute customization scripts" wrks for custom attributes?
Hi,
Do Attribute customizations "script based customizations" work with custom attributes (for e.g. the enumeration that I define) or does it work only with default (the ones that come with RTC install like "Priority, severity" etc)?
Can you share a example of this working with custom enumeration, please?
3 answers
From https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
The three input arguments are always the same (except for Conditions which do not have anIf your attribute has the ID my.attribute , you have to pass getValue("my.attribute") to get the value.attributeId
argument):
attributeId
A string that represents the id of the attribute for which this customization has been setworkItem
An instance of a work item for which this script is being executed. This supports the following operations:
getValue(String attributeId)
returns the value of the attribute with the specified id.
What is the syntax for this scenario
IF RestrictedAccess field is "A-Department1"
THEN
set Customer field value = "A" and Department field value = "Department1"
Or the following
IF Customer field value = "A" and Department field value = "Department1"
THEN
RestrictedAccess field drop down options are narrowed down to ...