Man in prison after refusing to undertake community work