Issues
Issues copied to clipboard
Adding a new deployment target tag within a project will not allow you to select it in the dropdown list on the deployment target page.
Severity
Not blocking customers, the customer can manually type the tag into the deployment target page which will then link it to that project.
Version
2024.1, 2024.3, 2025.1.1609
Latest Version
I could reproduce the problem in the latest build
What happened?
When adding a deployment target tag manually in a project step it will then not allow you to select it from the dropdown list in the deployment target page:
However, if you manually type the tag into the deployment target, ensuring its the same tag name and casing the deployment will link with the target:
Once you have manually added the target tag to one deployment target it can then be selected in the dropdown box for any other targets:
Reproduction
- Have at least 2 deployment targets setup.
- Create a new project or use an existing project. In the target tags section ensure you manually type out a new target tag that has not been used before. Note you may see a warning on the project step saying '
1 target tag isn't assigned to deployment targets'. - Go into a deployment target to add that tag, note it will not be present on the dropdown box.
- Manually type the target tag name we set in step 2 and ensure that is added to the target.
- Go back to the project step, you will now see that warning for the non-assigned target tag is no longer present proving the tag has linked correctly.
- Go into another deployment target, note you can now select the target tag we created in step 2 from the dropdown.
Error and Stacktrace
N/A
More Information
Initial customer ticket (internal) - https://octopus.zendesk.com/agent/tickets/214803 R and D (internal) - https://octopusdeploy.slack.com/archives/CNHBHV2BX/p1732873660681369
Workaround
Create the deployment target tag in a deployment target first or create the target tag in the project and manually type it into your first deployment target, ensuring the name and casing matches what you put in the project. From then you will be able to select it for other deployment targets.