sax validating - List of changesets and updating work items
Please also remember, as stated in the disclaimer, that this code comes with the usual lack of promise or guarantee. If you just get started with extending Rational Team Concert, or create API based automation, start with the post Learning To Fly: Getting Started with the RTC Java API’s and follow the linked resources.
How can I access work items associated to a change set in an Advisor or precondition on the server?
Here is an Advisor example that prevents delivery of change sets if they are associated to the wrong work item type. They were related to how to get the work item from a change set in an Advisor.
I thought it would be simple because I had done a lot with the work item link API on client and server already.
This is called hubris, I guess, and I found out the hard way, that the API from the Jazz SCM side is very different from what I was used to so far.
This blog is about an Advisor, so what is the difference?
A Participant is basically operational behavior that happens after a certain operation.
It can fail and roll back the save, but does not have to. An Advisor or precondition would be used If it is necessary to check certain conditions before an operation is performed.
Since it was so tough, I thought I should publish what I found, so that others can use it to jump start solving their own requirements.
License and how to get started with the RTC API’S As always, our lawyers reminded me to state that the code in this post is derived from examples from as well as the RTC SDK.