I am setting up Jira Automation to create new bitbucket branches when transitioning a ticket to InProgress.
However this will cause problems if a branch has already been created,
Additionally in some cases a developer may need to create a branch based on a different base branch, instead of Dev or Master.
For this a developer could create the branch in advanced before transitioning.
We need to determine if a bitbucket branch already exist for a ticket, before automatically creating a new one on transition.
I have looked at different conditions and cannot find a way of detecting if a code branch already exists.
The closest I can find is the branch smart values listed at the top of this document: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/
However that only works when using the Branch created trigger.