It's all about the answers!

Ask a question

how to get team area Iqueryattribute?


aastha khatri (20310) | 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,
Aastha

Accepted answer


permanent link
Ralph Schoon (58.2k23642) | answered Feb 27 '17, 2:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 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

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