Parse JIRA issue key in Bamboo from SVN commits

Hey there, I need some help here, I have a plan with two stages in my bamoo server.

My commits is in the format of "JIRA-ISSUE-KEY message"

I have a trigger detecting code changes in the first stage

So I wonder if there's a way to parse the JIRA-ISSUE-KEY as a vairable and pass to the second stage

Thanks,

Michaell W.

2 answers

1 accepted

Hi Michael,

This is actually not exposed as a build variable in Bamboo and it seems this will not be implemented because of added complexities if a single build comes with hundreds or thousand of commits as stated in the improvement request https://jira.atlassian.com/browse/BAM-11958

Two things you could do as thus:

1. Write a script task to get the commit messages from the repository and then find a way to extract the keys

2. Write a script task that will do some REST API calls to retrieve the commit messages

Regards,

Sultan

Hey Sultan, thx a lot for the suggestion, I haven't actually tried yet, but seems like doable, will try it out and post the result later.

Anyone can help?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 12 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

35 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you