RTC 4 extension: Any tip to query all work items for a specific work item type and for a specific attribute's value?
Hello, I am new to RTC extension:-) For follow-on (post) action, 1. Any tip (APIs) to query all work items for a specific work item type and for a specific attribute (integer or string type)? 2. Any tip (APIs) to get and reset default value of an integer or string attribute (predefined or customized)?
Thanks very much in advance. Regards Frank |
One answer
there are no 'apis'. RTC is an Object oriented system.
so there are methods on classes.. I have a set of example code that will let you get the current values.. see the second post here. https://jazz.net/forum/questions/94776/assertionfailedexception-problem-with-getting-the-values-of-attributes. This uses a pre-defined query (use eclipse to create it), because its hard to make a query thru code in my opinion. here is a link to a sample query https://jazz.net/forum/questions/69706/how-to-create-query-using-iquerydescriptorworkingcopymanager but defaults value is a lot harder, especially if that is set thru a script. you would have to examine the process configuration source to get the hard coded default value. (and this is not supported, it might work, but they can change the content if they want/need to). Comments
Frank Ning
commented Feb 18 '13, 11:16 a.m.
Thanks, Sam.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.