Created a custom attribute and it neither available for selection in the query result column nor in the Web UI
Hi Folks,
I Created a custom attribute (Type: Enumeration) and it neither available for selection in the query result column nor in the Web UI. It shows up successfully when I open up a Work item in the Eclipse client . Also the following programmatic check fails . I made sure to synchronize attributes after the creation of the custom attribute. Please advise.
IAttribute someAttribute= workItemClient.findAttribute(projectArea, "classification", pm);
if (workItem.hasAttribute(someAttribute)) {
Object value = workItem.getValue(someAttribute);
System.out.println(" found");
}
Regards,
Mostafa
I Created a custom attribute (Type: Enumeration) and it neither available for selection in the query result column nor in the Web UI. It shows up successfully when I open up a Work item in the Eclipse client . Also the following programmatic check fails . I made sure to synchronize attributes after the creation of the custom attribute. Please advise.
IAttribute someAttribute= workItemClient.findAttribute(projectArea, "classification", pm);
if (workItem.hasAttribute(someAttribute)) {
Object value = workItem.getValue(someAttribute);
System.out.println(" found");
}
Regards,
Mostafa
Accepted answer
Hi Mostafa,
This article walks you through how to create custom attributes: https://jazz.net/library/article/1003/#customattributes. As your attribute is being displayed in the work item, you've likely completed all of the steps, but you may want to double check.
This post points out that the attribute may not be displayed in previously created queries and that you need to be sure to select the option Choose Custom: https://jazz.net/library/article/1003/#customattributes.
This article walks you through how to create custom attributes: https://jazz.net/library/article/1003/#customattributes. As your attribute is being displayed in the work item, you've likely completed all of the steps, but you may want to double check.
This post points out that the attribute may not be displayed in previously created queries and that you need to be sure to select the option Choose Custom: https://jazz.net/library/article/1003/#customattributes.
Comments
Mostafa Radwan
Aug 22 '13, 6:19 p.m.This is RTC v3.0.0.1