How to get only defect work items Id's using Java Plain API
Hi Team,
I want to get how many defect work items created in project in RTC and have some calculus on it and show result on RTC dashboard,How can I do this?
I am trying to get defect work items from history using plain java API but unable to get it.
Anyone please suggest me on same.
Best Regards
Amruta.
One answer
The Java Client API:
- How to use an expression is explained here: https://rsjazz.wordpress.com/2012/11/19/using-an-expression-to-synchronize-attributes-for-work-items-of-a-specific-type/ (also see here: https://rsjazz.wordpress.com/2012/11/19/using-expressions-for-automation/)
- You can also use a query as explained here ( https://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ ).
Queries and expressions can be used to get the detailed results and also the count for a result set e.g. all defects.
This does not involve the history of the work items because that does not matter. Not sure if you can use this in a widget though.