Restricting Change Sets to specific Work Items
4 answers
I can't think of a clean and simple way to do this in current RTC release. However, here is one of the ways -
Add a precondition to 'Save Work Item' Operation Behaviour where this check is done. But for this, one must know how to add custom pre-conditions in RTC and also must be familiar with Work Item related APIs.
-Shivank
Jazz Process Team
Add a precondition to 'Save Work Item' Operation Behaviour where this check is done. But for this, one must know how to add custom pre-conditions in RTC and also must be familiar with Work Item related APIs.
-Shivank
Jazz Process Team
Is it possible to restrict users from adding change sets to certain Work Items?
For example, we would only like Defects and Tasks to have change sets associated with them, and not Story Work Items.
I can't think of a clean and simple way to do this in current RTC release. However, here is one of the ways -
Add a precondition to 'Save Work Item' Operation Behaviour where this check is done. But for this, one must know how to add custom pre-conditions in RTC and also must be familiar with Work Item related APIs.
-Shivank
Jazz Process Team
What is the best way to become familiar with performing a customization such as this? Is there documentation on working with preconditions and APIs?
I think a good point would be to start here: http://jazz.net/wiki/bin/view/Main/RtcSdk20. There are examples for creating extensions too. Not sure if there is a precondition example.
Ralph
What is the best way to become familiar with performing a customization such as this? Is there documentation on working with preconditions and APIs?
Ralph
What is the best way to become familiar with performing a customization such as this? Is there documentation on working with preconditions and APIs?
Hi
I think you have to use the other side to enforce this. The change-set link type is owned by the source control component and it is constrained, meaning that only the source control component can alter these links. You can not add (or deny adding) change-set links from the work items side.
Your save precondition would thus be contributed to the 'save change-set' operation (if that exists, maybe someone from source control can shed more light on that) and check the work item type of the other endpoint.
Regards
Marcel
Jazz Work Item team
I think you have to use the other side to enforce this. The change-set link type is owned by the source control component and it is constrained, meaning that only the source control component can alter these links. You can not add (or deny adding) change-set links from the work items side.
Your save precondition would thus be contributed to the 'save change-set' operation (if that exists, maybe someone from source control can shed more light on that) and check the work item type of the other endpoint.
Regards
Marcel
Jazz Work Item team