Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



3 answers

Permanent link
 Yes.

This is a great article about attribute customizations in RTC https://jazz.net/library/article/1003

1 vote


Permanent link
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 an attributeId argument):
  • attributeId A string that represents the id of the attribute for which this customization has been set
  • workItem 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.
If your attribute has the ID my.attribute , you have to pass getValue("my.attribute") to get the value.

0 votes


Permanent link
 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 ...

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 04 '15, 8:55 p.m.

Question was seen: 2,978 times

Last updated: May 07 '15, 7:26 p.m.

Related questions
Confirmation Cancel Confirm