Package com.microsoft.tfs.core.clients.workitem.query

Examples of com.microsoft.tfs.core.clients.workitem.query.WorkItemCollection


        String wiqlQuery = "Select ID, State from WorkItems where (id in ("
                + ids + "))";

        // Run the query and get the results.
        WorkItemCollection workItems = client.query(wiqlQuery);

        for (int i = 0; i < workItems.size(); i++) {
            WorkItem workItem = workItems.getWorkItem(i);

            stringStatusMap.put(String.valueOf(workItem.getID()),
                    (String) workItem.getFields().getField("State")
                            .getOriginalValue());
            openStatusMap.put(String.valueOf(workItem.getID()),
View Full Code Here


        }

        String wiqlQuery = "Select [System.Id] from WorkItems Where [System.TeamProject] = '" + projectName + "'";

        // Run the query and get the results.
        WorkItemCollection workItems = client.query(wiqlQuery);

        List<String> ids = list();

        for (int i = 0; i < workItems.size(); i++) {
            ids.add(String.valueOf(workItems.getWorkItem(i).getID()));
        }

        client.close();

        return ids;
View Full Code Here

TOP

Related Classes of com.microsoft.tfs.core.clients.workitem.query.WorkItemCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.