You only are not required to obtain visa for transit if you can satisfy some following requirements:

- Flights must be connecting flights, not separated flights

- Keep staying in the transit area

- Airline carrier is in charge of transferring passengers' baggage’s to another connecting flight

In case you are not inclusive in these cases, visa is needed.