It's all about the answers!

Ask a question

[closed] Getting Attributes of a Defect work items


Myroslav Palenychka (51175) | asked May 29 '09, 3:42 p.m.
closed Jun 20 '15, 4:17 p.m. by Ralph Schoon (63.3k33646)
Hello,

I have done some examples with work items and I cannot find how I can retrieve fields like Filed Against and Planned for attributes of a work item. I was looking in methods of IWorkItem and there is no method get PlannedFor. What should I do and which class should I use for that?

Regards,
Myroslav

The question has been closed for the following reason: "The question is answered, right answer was accepted" by rschoon Jun 20 '15, 4:17 p.m.

13 answers



permanent link
Myroslav Palenychka (51175) | answered Jun 15 '09, 12:01 p.m.
Thanks for your replies. It works perfectly. Will those Java APIs will be available in RTC 2.0, so that my scripts will still work?

Try:

IProjectArea.getDevelopmentLines()
IDevelopmentLine.getIterations()
IIteration.getChildren()

---
Ryan Manwiller
Jazz Team

permanent link
Patrick Streule (4.9k21) | answered Jun 15 '09, 12:50 p.m.
JAZZ DEVELOPER
Thanks for your replies. It works perfectly. Will those Java APIs will
be available in RTC 2.0, so that my scripts will still work?

Yes, these APIs are unchanged. There is a variation for tags (returns a
list instead of a string), but otherwise I am not aware of any breaking
changes.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Bruno Fazoli (856) | answered Jun 19 '15, 8:45 p.m.
Hi Myroslav Palenychka,

how could you get foundIn attribute as string. Please share the code.