tylerjgarland
tylerjgarland

Reputation: 643

Is there anyway to query off a certain date in the rally web api?

I can do the comparison after the fact, but I know it would be more effecient to filter out the data at the initial query. Is there a way to do something similar to

queryConfig[1] = {

        type : 'iteration',
        key  : 'iterations',
        query: 'StartDate > new Date() ',
        fetch: 'Name,TaskEstimateTotal,Resources'
};

Upvotes: 3

Views: 956

Answers (1)

Charles Ferentchak
Charles Ferentchak

Reputation: 1237

If you wanted to get all the iterations that start after today you could

queryConfig[1] = {

    type : 'iteration',
    key  : 'iterations',
    query: 'StartDate > TODAY ',
    fetch: 'Name,TaskEstimateTotal,Resources'
};

If you wanted to query for all Iterations that Start after today you could use our date utilities.

queryConfig[1] = {

    type : 'iteration',
    key  : 'iterations',
    query: 'StartDate > '+ rally.sdk.util.DateTime.toIsoString(new Date()),
    fetch: 'Name,TaskEstimateTotal,Resources'
};

Upvotes: 1

Related Questions