Active Choices Reactive Reference Parameter

I am currently working on a project where i want to create a job which ask a user for the release version and if the user selects new. The Jenkins should as for branch name and release type that is major minor hotfix, after the successful compilation it should create a tag on git. And if old is selected it shows a drop down menu or perviously published git tags