Package com.rallydev.rest.util

Examples of com.rallydev.rest.util.QueryFilter


        try {
            //Get a story with defects
            System.out.println("\nQuerying for stories with defects...");
            QueryRequest storiesWithDefects = new QueryRequest("hierarchicalrequirement");
            storiesWithDefects.setQueryFilter(new QueryFilter("Defects.ObjectID", "!=", null));
            storiesWithDefects.setFetch(new Fetch("FormattedID", "Name", "Defects"));
            QueryResponse storiesWithDefectsResponse = restApi.query(storiesWithDefects);
            JsonObject story = storiesWithDefectsResponse.getResults().get(0).getAsJsonObject();
            System.out.println(String.format("Found: %s - %s", story.get("FormattedID").getAsString(), story.get("Name").getAsString()));
View Full Code Here


    @Test
    public void shouldCreateCorrectQueryWithQuery() {

        QueryRequest q = new QueryRequest("Defect");
        q.setQueryFilter(new QueryFilter("State", "=", "Fixed"));
        Assert.assertTrue(q.toUrl().contains("query=%28State+%3D+Fixed%29"));
    }
View Full Code Here

        q.setProject("/project/1234");
        q.setProject("/workspace/2345");
        q.setScopedDown(false);
        q.setScopedUp(true);
        q.setFetch(new Fetch("Name", "Description"));
        q.setQueryFilter(new QueryFilter("State", "=", "Fixed"));
        q.setPageSize(5);
        q.setOrder("Name");
        q.setStart(10);
        q.addParam("foo", "Bar");
       
View Full Code Here

            System.out.println("Querying for top 5 highest priority unfixed defects...");

            QueryRequest defects = new QueryRequest("defect");

            defects.setFetch(new Fetch("FormattedID", "Name", "State", "Priority"));
            defects.setQueryFilter(new QueryFilter("State", "<", "Fixed"));
            defects.setOrder("Priority ASC,FormattedID ASC");

            //Return up to 5, 1 per page
            defects.setPageSize(1);
            defects.setLimit(5);
View Full Code Here

        try {
            //Get a story with defects
            System.out.println("\nQuerying for stories with defects...");
            QueryRequest storiesWithDefects = new QueryRequest("hierarchicalrequirement");
            storiesWithDefects.setQueryFilter(new QueryFilter("Defects.ObjectID", "!=", null));
            storiesWithDefects.setFetch(new Fetch("FormattedID", "Name", "Defects:summary[Priority;State]"));
            QueryResponse storiesWithDefectsResponse = restApi.query(storiesWithDefects);
            JsonObject story = storiesWithDefectsResponse.getResults().get(0).getAsJsonObject();
            System.out.println(String.format("Found: %s - %s", story.get("FormattedID").getAsString(), story.get("Name").getAsString()));
View Full Code Here

TOP

Related Classes of com.rallydev.rest.util.QueryFilter

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.