Can I use the same change set associated with different work items to deliver to different streams?
3 answers
I am wondering how we do this. I'll ask 8-).
One approach would be to associate the change set to the second work item only after the change has been successfully delivered. In this case you would have no issue. So the workflow would be like:
1. Develop a change
2. Deliver the approved change to a stream
3. Associate the change set to a new work item for the other stream (now the change set can't be delivered, but that does not matter because it is already in that other stream)
4. Accept the change into a workspace for the other stream (it is delivered, hence completed)
5. If necessary merge and add/modify/test code and associate the new changes to the same active work item.
6. Suspend and request for approval
7. After approval deliver.
Another thought is using a patch that probably creates a new change set.
Otherwise you can request an enhancement. I tried in 4.0.1 and 3.0.1.1. So this is no new behavior. I also think it would be tough to come up with a good implementation. You would either have to set the rule that there needs to be at least one work item with an approval associated to the change set. Or you would have to ignore work items not owned by the team that owns the stream. Or you would need an indicator for which stream an approval is. All that would make configuring the process (and understanding what happens) a lot harder, I think.
Comments
Another thought I had was to have the streams owned by different teams and require a different type of approval for delivery in the the different team areas. That however would require to only use one work item, but different approvals on this one work items to work. Or you'd end up needing two different approvals on each work item.
Thanks - your suggestion above about only attaching the change set to the second work item after its been approved and delivered by the first, is currently how we're working around the problem this causes us - but that requires people to remember to go back to do the other work item at a later date .. hence people are mostly giving up with the using the same change set.
Thanks - your suggestion above about only attaching the change set to the second work item after its been approved and delivered by the first, is currently how we're working around the problem this causes us - but that requires people to remember to go back to do the other work item at a later date .. hence people are mostly giving up with the using the same change set.
I then ran a simple test. I did a small change and assigned two work items to the change set. I tried to deliver ant I was told that both work items need that approval.