Hundreds of court security and custodial officers have gone on strike for eight hours, demanding a 24 per cent pay rise.