Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,419,322
Community Members
 
Community Events
171
Community Groups

Can we create Jira issue automatically in case of build failure?

We would like to create the issue in Jira automatically in case of build / deployment failure in Bamboo. I have searched few ways to do this and one of the method is making use of REST API and Pre-post build command runner plugin.

 

But the plugin is supported only till 6.2.* version, i would need this for latest version of Bamboo.

Is there any other way we can achieve this?

1 answer

0 votes
Tarun Sapra Community Leader Jun 13, 2018

Hello @Deepak Sandilya

Currently, your requirement is an open ticket- https://jira.atlassian.com/browse/BAM-2537

Thank you Tarun. Is there any other ways that we can use by the time the requirement gets fulfilled?

Tarun Sapra Community Leader Jun 14, 2018

You can trigger a REST call to create a issue in JIRA in case of build failure.

Yeah, But is there any utility which helps to get the exit status of the build to make the decision on Success vs Failure to create the ticket.

You could create a parallel stage that periodically checks the status of the primary job and once it's either completed or failed, create your ticket and finish as appropriate.

http://<server>/bamboo/rest/api/latest/result/<projkey>?buildstate

Couldn't you just send an E-Mail notification to jour Jira server?

At Plan Configuration/Notifications there are several events which could be used.

Maybe if you'd use a Jira plugin like "Power Scripts" to parse the contents of the mail you could even create an issue in the appropriate project.

Suggest an answer

Log in or Sign up to answer