According to Mary Louise Kelly a host of NPR, Ukraine has always had military conscription as it was a legacy of the Soviet Union. But until Russia invaded Ukraine last year, some men could defer military service.
There ended up being a travel ban on men aged between 18 and 60 for people who never wanted to enlist.
The exceptions have been suspended under martial law and a travel ban put in place that prevents most men between the ages of 18 and 60 from leaving the country, effectively trapping them inside Ukraine.
Therefore, there was conscription in Ukraine within the Russian Invasion of Ukraine, but how many people did Ukraine actually conscript?
Colonel Roman Gorbach, head of personnel for Ukraine's ground forces says that less than 10% of conscripts who have been called up have been immediately sent to fight, however rumours that men are being randomly picked up off the street and drafted are lies.
The total amount of enlisted solders Ukraine has drafted is around a million people.
https://www.npr.org/2022/08/15/1117605630/ukrainians-express-worries-over-conscription-following-russias-invasion
https://ecfr.eu/article/no-partial-measures-how-ukraine-can-meet-the-challenge-of-russias-mobilisation/