It's all about the answers!

Ask a question

RTC 4 extension: Any tip to query all work items for a specific work item type and for a specific attribute's value?


Frank Ning (50025119133) | asked Feb 17 '13, 8:48 p.m.
edited Feb 17 '13, 8:48 p.m.

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



permanent link
sam detweiler (12.5k6195201) | answered Feb 17 '13, 11:48 p.m.
edited Feb 17 '13, 11:54 p.m.
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.

I did mean related class(es) and method(s) when I mentioned APIs:-).

I will see what I can get from the links you posted here.

Your answer


Register or to post 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.