.net - Filter Rally defect on Last Updated Date -


i using below code retrieve defect data rally. currently, defect being filtered formatted id.

is there way through can filter result last updated date?

eg: string querystring = @"(lastupdatedate < 4\5\2013)";

static void main(string[] args)

{

rallyserviceservice service = new rallyserviceservice();

string rallyuser = "username";

string rallypassword = "password";

service.url = "https://rally1.rallydev.com/slm/webservice/1.41/rallyservice"; system.net.networkcredential credential = new system.net.networkcredential(rallyuser, rallypassword); uri uri = new uri(service.url); system.net.icredentials credentials = credential.getcredential(uri, "basic"); service.credentials = credentials; service.preauthenticate = true; service.cookiecontainer = new system.net.cookiecontainer(); // find defect //string querystring = @"(lastupdatedate < 4\5\2013)"; string querystring = "(formattedid = de577)"; // order formattedid ascending string orderstring = "formattedid asc"; bool fetchfullobjects = true; // paging information long start = 0; long pagesize = 200; // issue query queryresult queryresult = service.query(null, "defect", querystring, orderstring, fetchfullobjects, 1, 20); // @ object returned query() console.writeline("query returned " + queryresult.totalresultcount + " objects"); console.writeline("there " + queryresult.results.length + " objects on page"); (int = 0; < queryresult.results.length; i++) { domainobject rallyobject = queryresult.results[i]; defect defect = (defect) rallyobject; console.writeline("date: "+defect.lastupdatedate); } console.readkey(); }

rally requires iso8601-formatted dates, query string of format:

string querystring = "(lastupdatedate < \"2013-04-15\")";

should work you.

just heads-up, if you're getting started building integration, i'd highly recommend using 1 of rally's .net rest sdk instead of soap.

rest more robust, more performant, and, webservices api 1.4x (x yet-to-be-determined) final api release have soap support. webservices 2.x rest-only, using rest essential wanting new webservices features moving forward.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -