Urgent contact tracing is underway in New South Wales and Queensland, as both states deal with new cases of community transmission of COVID-19.