Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trigger the build in Bamboo based on specific commit message in Jira Edited

Hi Friends,

My use case is based on the "Specific commit message in Jira, build should trigger in Bamboo.

For example, creating/updating the comment like "Build the Bamboo plan" in Jira, Bamboo should trigger the build.

For other comments in Jira, it should not trigger the build.

Following are the steps taken,

    I have created the webhook in Jira, eg) comment ~ "\"Build the Bamboo plan\"".

 first time, if I give comments like "initiate build" --> Bamboo build was not triggered.

                  if I give the comments like "Build the Bamboo plan" --> build triggered

         Now,  if I give the comments like "initiate the build" --> Build is triggered (which should not happen)

Can anyone kindly help on the above scenario.




Sangeetha K

2 answers

With the combination of the Automation for Jira (A4J) and Better DevOps Automation apps you could create an automation rule for this use case:

  1. Add the trigger "Issue commented".
  2. Add the condition "Advanced compare condition" and compare the comment text to your expected string.
  3. Add the Run Groovy script action and use one of the Bamboo related Groovy scripts. You can probably find the script that can be just copied over.

This could work for any major CI/CD system:


Disclaimer: I am a developer working on the second app used for this answer.

Hey @sangeethakannan 

you can of course create an automation like that, but I would be careful in your situation.

However, if you really are trying to achieve this, you could use Automation for Jira Pro or ScriptRunner for Jira for that purpose, depending on what you already have.

In there, listen to the Issue Updated Event and check for changes in the comments body, using a regex. Then, if that was a match, fire a webhook or execute a script that fires a webhook.

You can also create new buttons in the More Menu of your issue, this way you would have a more controlled way of executing your build.


Andrej from greenique

Suggest an answer

Log in or Sign up to answer
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

131 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you