How does a SCM user check in code and associate it with a work item that is owned by someone else?
One answer
(Is the code owned by someone else? Or is the work item owned by someone else?)
You should be allowed to check in your own code and then attach your change set to someone else's work item. I don't know of any permissions or preconditions that would prevent that. That happens from time to time on my team.
There is no way to check in code and have it appear to be owned by someone else. If you are checking in code, then it has to go into your own change set. You cannot check in code to someone else's change set, and you cannot change the owner of a change set to someone else.
You cannot associate someone else's change set with your own work item, but the owner of the change set can. The link between the change set and the work item can only be created or removed by the owner of the change set. The owner of the work item has no control over the links. (Enhancement 57870 asks that this restriction be relaxed.)