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

Access an attribute label (set in the editor) from a java extension

 Hi everybody,

I wrote a java server extension that checks if a linktype/reference field is filled.
Now I want to send the user an error message and would like to make it say
"Field is not set".
But how can I access the label of the field? (label set in the editor)


Thanks!

(Oh and also this will be my last question, so thank you all for your support, you were a giant help. Especially you Ralph :) )

0 votes



2 answers

Permanent link
I would try com.ibm.team.workitem.common.model.IAttribute.getDisplayName()

Good luck Philipp.

0 votes

Comments

 Ok that works,

would you know the equivalent for Linktypes?

Because com.ibm.team.links.common.registry.IEndPointDescriptor.getDisplayName() only gives me the name that's in the linktype plugin/extension and not the label from the editor

Sorry, no idea then. I tried the same path, but don't have a testbed.

1 vote


Permanent link
I wrote a file with the ids and their aliases and put it in a HashMap<id,alias>.
That works too.


0 votes

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,937
× 411

Question asked: Aug 23 '16, 9:18 a.m.

Question was seen: 2,999 times

Last updated: Aug 24 '16, 6:03 a.m.

Confirmation Cancel Confirm