do the job
To serve a particular purpose satisfactorily. A broom would really do the job here, but we'll have to make do without it. Go get me a stapler—tape won't do the job with a tear this big.
do the ˈjob/ˈtrick
(informal) do what is needed or wanted: These pills should do the job. You’ll feel better in no time.I tried many different ways to stop smoking. Acupuncture finally did the trick.