We have Jira Cloud integrated with Bitbucket, such that we can see the 'Development' panel on the JIRA issue. We would like to create an automation that when a branch that is linked to a JIRA issue is merged with a given name we would update an existing field.
For example lets assume we have the issue with name:
IS-12345
And the branch name is:
temp/IS-12345_myname_mylabel_someothertext
I would like to recognise the label 'mylabel' in the branch name and add it to a new field in JIRA when the branch is merged in Bitbucket.
Is this possible using JIRA automation or workflows?
If not, is there another code based API I could implement?