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

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

0 votes

Comments

This is RTC v3.0.0.1


Accepted answer

Permanent link
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.
Mostafa Radwan selected this answer as the correct answer

0 votes


One other answer

Permanent link
Since you wrote that the Web UI (I am assuming: work item editor) is also not showing the attribute, can you please confirm that you created an editor presentation for the attribute?
Also, is Eclipse client WI editor showing the attribute?

0 votes

Comments

Thank you guys . I was able to get it to show up after editing the presentation.

Programmaticly, I had to use IWorkItem.FULL_PROFILE to be able to get the custom attribute value.

Thanks again.

Regards,
 Mostafa

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
× 10,948
× 7,503

Question asked: Aug 22 '13, 6:11 p.m.

Question was seen: 5,882 times

Last updated: Aug 23 '13, 12:41 p.m.

Confirmation Cancel Confirm