Retrieving TeamArea of workitem (e.g. defect) via Javascript
I am wondering whether it is possible to retrieve the teamarea using javascript.
|
Accepted answer
You can do a workItem.getLabel("teamArea"), by example in a Calculaded Value Script;.
It worked for me (RTC 6.0.6)
Ralph Schoon selected this answer as the correct answer
|
One other answer
Ralph Schoon (63.5k●3●36●46)
| answered Oct 18 '17, 1:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Oct 18 '17, 1:49 a.m. https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Accessing_built_in_attributes_of provides a complete list of work item attribute ID's that is supported as internal attributes.
Comments
Guenther Jornitz
commented Oct 18 '17, 3:58 p.m.
Hi Ralph,
Donald Nong
commented Oct 18 '17, 8:03 p.m.
What are you trying to do? When you mentioned JavaScript, I suppose you tried to do attribute customization, but now you talk about squad and tribe, which suggests reporting or querying.
The team area is available as caculated value in work item queries, but there is no pseudo attribute available to access it in the API. You have to get the category and get the mapping of that to a team area (and no, you can't do that in JavaScript either).
|
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.