On delivery of ChangeSet, can i get the parent workitem of the associated workitem?
Hi Ralph,
I have a requirement to restrict Users on delivery of changesets when the Parent of Associated workitem is "SI" or "Enhancement" workitem.
I use DeliverOperationData for the operations. But, when i try to get the Parent References using ISaveParameter, i get the below exceptions,
java.lang.ClassCastException com.ibm.team.scm.service.internal.process.LegacyDeliverOperationData incompatible with com.ibm.team.workitem.common.ISaveParameterjava.lang.ClassCastException:
I understood the Exception, but how do i retrieve the Parent workitem of Associated changeset Workitem?
Thanks
Sudar
Accepted answer
With the work item already fetched from the change set, you would have to find the parent of that. See https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for how that works, and then look at that type as well.
Comments
Thanks Ralph !
Did I mention, if you didn't do that already, you should really, really, really do the Extensions workshop mentioned in the hints where to get started? Start here and do the workshop as hinted: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
Oh Thanks.