It happened shortly after Naruto's inauguration ceremony day. Temari knew Shikamaru was too lazy to take up a manual labor job, and with the war over a battlefield strategist like him would most likely end up jobless. She had to do what any good wife would have done and asked the man in charge a favor in exchange for some "fun" time!
You can access the full version through this link