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

RTC Workitem Customization of Dropdowns

Hi Guys,
Is there a way to add a drop down text attribute? Is javascript the way to populate the dropdown? I know exactly how to script in CQ but not in RTC. Can you post how to do this in RTC work items or tell me how to do this? ( With cascading/dependent lists).

BTW, What should the new attribute type be? ( not enum I assume as it has real text values)


List/Dropdown A
--------------------
Color
Shape


List/Dropdown B
-------------------
If Color is selected in dropdown/list A then the next dropdown B field should show
Red
Blue
Green

else
Square
Circle
rectangle

Thanks
RK

0 votes



15 answers

Permanent link
Hi Guys,
Is there a way to add a drop down text attribute? Is javascript the
way to populate the dropdown? I know exactly how to script in CQ but
not in RTC. Can you post how to do this in RTC work items or tell me
how to do this? ( With cascading/dependent lists).

BTW, What should the new attribute type be? ( not enum I assume as it
has real text values)


List/Dropdown A
--------------------
Color
Shape


List/Dropdown B
-------------------
If Color is selected in dropdown/list A
then the next dropdown B field should show
Red
Blue
Green

else
Square
Circle
rectangle

No need to script anything for this scenario. In RTC 3.0, you can

1) Define an Enumeration A containing 'Color' and 'Shape'
2) Define an Enumeration B containing 'Red', 'Blue', 'Green', 'Square',
'Circle', 'Rectangle'
3) Create a new Dependent Enumeration value set provider ('Attribute
Customization' tab).
4) Select A as the master enum, B as the slave enum
5) Check 'Red', 'Blue', 'Green' for 'Color'
6) Check 'Square', 'Circle', 'Rectangle' for 'Shape'
7) Create an attribute for Enum A
8) Create an attribute for Enum B and associate the value set provider
9) Place the attributes in the editor presentation

An article about this functionality is in the works.

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
Thanks for the response.

How can I do this in 2.0.0.2 RTC ? Also how do I restrict that a workgroup ( as I am used to Clearquest Scripts ) user cannot do a few specific state transitions?

More like how to validate a specific user Role & prevent from changing state / action ?

Are there examples of using API? Are there examples of using API to customize workitems?

Are Enumerations the only type used in Lists ? Are there better explanation/examples of describing Data Types like category etc? The documentation on data types is very rudimentary.

I am used to stateless records in CQ. So I am trying to understand how I would do it in RTC etc.


Hi Guys,
Is there a way to add a drop down text attribute? Is javascript the
way to populate the dropdown? I know exactly how to script in CQ but
not in RTC. Can you post how to do this in RTC work items or tell me
how to do this? ( With cascading/dependent lists).

BTW, What should the new attribute type be? ( not enum I assume as it
has real text values)


List/Dropdown A
--------------------
Color
Shape


List/Dropdown B
-------------------
If Color is selected in dropdown/list A
then the next dropdown B field should show
Red
Blue
Green

else
Square
Circle
rectangle

No need to script anything for this scenario. In RTC 3.0, you can

1) Define an Enumeration A containing 'Color' and 'Shape'
2) Define an Enumeration B containing 'Red', 'Blue', 'Green', 'Square',
'Circle', 'Rectangle'
3) Create a new Dependent Enumeration value set provider ('Attribute
Customization' tab).
4) Select A as the master enum, B as the slave enum
5) Check 'Red', 'Blue', 'Green' for 'Color'
6) Check 'Square', 'Circle', 'Rectangle' for 'Shape'
7) Create an attribute for Enum A
8) Create an attribute for Enum B and associate the value set provider
9) Place the attributes in the editor presentation

An article about this functionality is in the works.

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
How can I do this in 2.0.0.2 RTC ? Also how do I restrict that a
workgroup ( as I am used to Clearquest Scripts ) user cannot do a few
specific state transitions?

More like how to validate a specific user Role& prevent from
changing state / action ?

Process permissions are per role, and you can configure the permitted
actions (state transitions) per role:

http://dl.dropbox.com/u/2663305/ScreenShots/2010-11-10_1258.png

Are there examples of using API? Are there examples of using API to
customize workitems?

API is currently very limited (for calculated attributes). Please share
the specific need you have, and we may be able to point you in the right
direction.

Are Enumerations the only type used in Lists ? Are there better
explanation/examples of describing Data Types like category etc? The
documentation on data types is very rudimentary.

Enumerations are the typical case. There are also other supported value
sets (like user lists of a specific role).

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
Hi

We want to add programmatically the literal values for the Enumerations in RTC work items in project configuration using the RTC JAVA API's. Is anybody have any information on this which can help us?

0 votes


Permanent link
We want to add programmatically the literal values for the
Enumerations in RTC work items in project configuration using the RTC
JAVA API's. Is anybody have any information on this which can help us?

Enumerations can't be modified via API. But support for dynamic
calculated value sets is planned, although not available yet.

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
Can you share some information about the planned dynamic value sets feature, like target release date? Is there a RTC work item for this feature we can look at?

0 votes


Permanent link
On 11/11/10 3:08 PM, xdou wrote:
Can you share some information about the planned dynamic value sets
feature, like target release date? Is there a RTC work item for this
feature we can look at?

An example is:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/95178

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
Thanks for the response.

How can I do this in 2.0.0.2 RTC ? Also how do I restrict that a workgroup ( as I am used to Clearquest Scripts ) user cannot do a few specific state transitions?

More like how to validate a specific user Role & prevent from changing state / action ?

Are there examples of using API? Are there examples of using API to customize workitems?

Are Enumerations the only type used in Lists ? Are there better explanation/examples of describing Data Types like category etc? The documentation on data types is very rudimentary.

I am used to stateless records in CQ. So I am trying to understand how I would do it in RTC etc.


Hi Guys,
Is there a way to add a drop down text attribute? Is javascript the
way to populate the dropdown? I know exactly how to script in CQ but
not in RTC. Can you post how to do this in RTC work items or tell me
how to do this? ( With cascading/dependent lists).

BTW, What should the new attribute type be? ( not enum I assume as it
has real text values)


List/Dropdown A
--------------------
Color
Shape


List/Dropdown B
-------------------
If Color is selected in dropdown/list A
then the next dropdown B field should show
Red
Blue
Green

else
Square
Circle
rectangle

No need to script anything for this scenario. In RTC 3.0, you can

1) Define an Enumeration A containing 'Color' and 'Shape'
2) Define an Enumeration B containing 'Red', 'Blue', 'Green', 'Square',
'Circle', 'Rectangle'
3) Create a new Dependent Enumeration value set provider ('Attribute
Customization' tab).
4) Select A as the master enum, B as the slave enum
5) Check 'Red', 'Blue', 'Green' for 'Color'
6) Check 'Square', 'Circle', 'Rectangle' for 'Shape'
7) Create an attribute for Enum A
8) Create an attribute for Enum B and associate the value set provider
9) Place the attributes in the editor presentation

An article about this functionality is in the works.

--
Regards,
Patrick
RTC Work Item Component Lead

For RTC 2.0.0.2:

Let say that you have attribute Pick2 which depends on choise of attribute Pick1.
For example,

if you choose Pick1 literal.l1, on Pick2 attribute only literals l2,l4,l5 are available for choose and
if you choose Pick1 literal.l2, on Pick2 attribute only literals l3,l6 are available for choose.

You must write next source code at configuration source of specific project area:



<valueSetProvider>
<filterMap>
<value>
<literal>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
</filterMap>
</valueSetProvider>

Then, you must find the <attributeDfinitions> tab, and add next:

<attributeDefinition>
<dependsOn>
<valueSetProvider>
<filterAttribute>
</valueSetProvider>
</attributeDefinition>

That should work.

Regards,

0 votes


Permanent link
Thanks Milan.

How do I clear the Selected Value from Dropdown B if the user changes his mind and selects a new value in in Dropdown A. (Sounds like a OnSelect Event. Is that handled? or where/how do we write code? how? )

0 votes


Permanent link
Thanks Milan.

How do I clear the Selected Value from Dropdown B if the user changes his mind and selects a new value in in Dropdown A. (Sounds like a OnSelect Event. Is that handled? or where/how do we write code? how? )


It is automatically cleared! I implemented this logic, and it works for me. Also, you can add some new values in enumeration lists.
Example: you can in dropdown A add "Unspecified" value, which will use new literal id, and in dropdown B you can also add "Unspecified" value, and say if you choose "Unspecified" in dropdownd A, "Unspecified" will be also shown in dropdown B.

As soon as you change some value in A, B will be also changed with values you wrote.

0 votes

1–15 items
page 1of 1 pagesof 2 pages

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: Nov 08 '10, 3:58 p.m.

Question was seen: 14,353 times

Last updated: Nov 08 '10, 3:58 p.m.

Confirmation Cancel Confirm