Could have several different causes.
- Shifter mechanism
- Bent/worn shifting fork
- Worn dogs on gears
Before you dig into the tranny, have a look at your shifter mechanism.
I had a similar problem a couple of weeks ago. Missed shifts from time to time, most of the time from 2nd to 3rd. The problem got worse until I could not shift into 3rd anymore. The reason was a screw that worked itself loose on the shifter drum, so that the "cage" on its end started to move sideways.
Locktite and a screwdriver fixed it. While I was at it, I changed oil and now it shifts like a dream again

Ceers
Carsten