Term: jesse's girl syndrome
Example: bill is friends with jack, bill has a crush on jill and wants to date her, but jack jack is dating jill, bill has jesse's girl syndrome
Definition: when a guy wants to date/likes a girl his friend is dating, from the song jesse's girl by rick springfield