How to prevent associating a link on a workitem that has been closed
One answer
There is a built-in Precondition for this.
Restrict Associating to Closed Work Items |
Prevents change set links from being added to or removed from closed work items. Teams with a strict work item lifecycle can use this precondition to stop change sets from being associated or dissociated with a work item whose work is complete. You can also use this precondition to add a comment to a work item when links are added/removed and to ensure that the project area of a stream contains the user who is delivering the changes. |