It's all about the answers!

Ask a question

When you need to access non built-in attributes of work items


De'Shea Bennett (166) | asked Apr 11 '13, 2:02 p.m.
retagged Apr 11 '13, 2:21 p.m. by Indradri Basu (1.8k1514)
In a script, I know you access built-in attributes of work items with the com.ibm.team.workitem.api.common.WorkItemAttributes class but how do you access attributes that are not built-in?

2 answers



permanent link
Ralph Schoon (63.1k33646) | answered Apr 11 '13, 2:22 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
 Wrong answer... Again, read https://jazz.net/library/article/1093 lab 5

permanent link
Indradri Basu (1.8k1514) | answered Apr 11 '13, 2:16 p.m.
For custom attribiutes  the same should work. For example, you can use the workItem.getValue("AttributeID") to access the value of a custom attribute.
If you are starting with Attribute customization then I would recommend to go through this although there are several articles available around on this area.

Comments
De'Shea Bennett commented Apr 11 '13, 3:07 p.m.

Yes; I've been through this document and haven't been able to set anything outside of the attribute ID and a default (hard-coded) value.

It also seems like it take the tool a long time (30 minutes) to take the change of a new script.

Your answer


Register or 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.