Custom WorkItem: modifiable Products and Components
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
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
Have you considered using nested categories, instead of a custom
"Component" attribute?
Cheers,
Geoff
lziosi wrote:
"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
Thank you. For the retrieval of the nested category the usual code:
worked having passed a string like: "Product/Component" as value of categoryName.
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.