Auto Transition when an Issue is Added/Removed from Sprint

I would like to know if it is possible to transition an item when it is moved in or our of a sprint.

E.g.: when my items are on the backlog they have the status "In design". When I move them into a sprint, I want the status to change to "Selected for Development". Of course this should then also work the other way round.

It would also be great if closed item can be automatically transitioned to the status "archived" when I complete my sprint.