Now I tried to do this via reporting myself, and then joining a medic sub, but it didn't work, so my idea would be a "switch" command.
Basically it would work like this. You write "!switch faction class_name" "!switch blu medic" and it would move you from your original spot, to the sub request spot of the blue medics, and requests a sub for your old class.