hello,
protection of lien is available where you are either in the same department or transferred to another on deputation. then your lien is protected and when you come back you can join your parent department and post.
here, you were selected in a central govt. department but later got selected in a state govt. department. so you have to leave either of the two although pay protection would be definitely provided.
regards