It's all about the answers!

Ask a question

Custom WorkItem: modifiable Products and Components


Lara Ziosi (33811112) | asked Dec 22 '09, 11:33 a.m.
Hi,

Using RTC 2.0.0.2 and the Java Plain Client, on Windows.

I would like to create in a single ProjectArea custom WorkItems that represent tickets for different Products and Components within the Products.

Both the Products and the Components must be modifiable over time.
I have thought that Products would be represented by WI Categories and Components by a custom Attribute typed by a custom Enumeration.

This works fine (I have been able to customize the process and to create the client application that programmatically creates the tickets) but I wonder if this is the best way to do it.

What is then the best way to modify the category list and the values of the enumeration literals to add new products/components?

Additionally, I'm not convinced by this approach because I cannot restrict which Components belong to which Products.

I have checked this but have not figured yet how it would apply:
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Custom_Providers

Thank you for your suggestions, Lara

2 answers



permanent link
Geoffrey Clemm (30.0k23035) | answered Dec 22 '09, 11:08 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Have you considered using nested categories, instead of a custom
"Component" attribute?

Cheers,
Geoff

lziosi wrote:
Hi,

Using RTC 2.0.0.2 and the Java Plain Client, on Windows.

I would like to create in a single ProjectArea custom WorkItems that
represent tickets for different Products and Components within the
Products.

Both the Products and the Components must be modifiable over time.
I have thought that Products would be represented by WI Categories and
Components by a custom Attribute typed by a custom Enumeration.

This works fine (I have been able to customize the process and to
create the client application that programmatically creates the
tickets) but I wonder if this is the best way to do it.

What is then the best way to modify the category list and the values
of the enumeration literals to add new products/components?

Additionally, I'm not convinced by this approach because I cannot
restrict which Components belong to which Products.

I have checked this but have not figured yet how it would apply:
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Custom_Providers

Thank you for your suggestions, Lara

permanent link
Lara Ziosi (33811112) | answered Dec 30 '09, 6:09 a.m.
Thank you. For the retrieval of the nested category the usual code:


List path= Arrays.asList(categoryName.split("/"));
ICategoryHandle category= workItemClient.findCategoryByNamePath(projectArea, path, null);



worked having passed a string like: "Product/Component" as value of categoryName.

Your answer


Register or to post your answer.