I need to set rules while check in files in TFS.
Rules: At least one work item should mapped to the check in file. the user can map only assigned work item
You will need to add check-in policy of type work Items, see the following image,