Bed transition

My almost 3 month old only sleeps on his swing or on bed with me. How do I get him to sleep on his bassinet or crib? Help. I would like for my husband to get his spot back in bed, however because of baby he is forced to sleep on couch 😣 baby cries if I put him in bassinet and won't sleep longer that an hour or 2. As for bed he can go almost 7 hours and swing 4 to 5 hours 😓