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


permanent link
Ralph Schoon (62.0k33643) | 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

Your answer


Register or to post your answer.