It's all about the answers!

Ask a question

how to get team area Iqueryattribute?

aastha khatri (22619) | asked Feb 27 '17, 1:12 a.m.

 I want to run a query programmatically which will return be  list of workitems for a given team area. But I am not able to find the Team Area property id like for project area we have IWorkitem.Project_Area_Property

IQueryableAttributeFactory factory = QueryableAttributes.getFactory(IWorkItem.ITEM_TYPE);
IQueryableAttribute queryableProjectArea = factory.findAttribute(conn.getProjectArea(), IWorkItem.PROJECT_AREA_PROPERTY, queryCommon.getAuditableCommon(), null);

Same way I need query IQueryableAttribute for team area.
Thanks & Regards,

Accepted answer

permanent link
Ralph Schoon (63.1k33646) | answered Feb 27 '17, 2:26 a.m.

 Such an attribute does not exist. The relationship to a team area is created through the IWorkItem.CATEGORY_PROPERTY

aastha khatri selected this answer as the correct answer

aastha khatri commented Feb 27 '17, 4:44 a.m.

 So then I need to club all categories in a team area and group the workitems.

Thanks Ralph.

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.