Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to retrieve bitbucket build/deployment tag name in Jira automation setup?

kenan xin November 23, 2023

on smart values documentation page Jira smart values - development | Cloud automation Cloud | Atlassian Support : 

{{build.refs}} returns the refs of the build, e.g. [feature/ISSUE-123-some-work, feature/ISSUE-456-more-work]. This is a list of metadata that can be associated with a build. It may contain, for example, branches and tags names.
This value is optional and may be an empty list.

how do i retrieve the tags names of the build from {{build.refs}} ?

 

We are using tags as a trigger for deployments of a mono repo. For examples, 

tag1:   app1_1.1.2_dev

tag2:   app2_1.1.2_dev

 

so tagging a commit  in bitbucket with the tag app1_1.1.2_dev will trigger a deployment of app1 to dev environment. 

 

Now, what we want to do is to setup an automation to automatically transit a ticket if 

1. the ticket is for app1

2. the deployment build is tagged with app1_xxxxxx

Screenshot 2023-11-24 121758.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events