Transition a Jira workflow when Bamboo deploys to environment
Asked by John:

We're using our own hosted Bamboo to deploy our code to environments and we're using cloud hosted Jira.

I'm trying to get it so that when Bamboo deploys to our production environment it transitions the Jira issues to "Released".

It seems like our Bamboo and Jira are both already nicely connected together:

- Our Bamboo can correctly see which issues a release relates to

- Our Jira can correctly see the deployments an issue has been deployed to (see where it says "Deployed to ...").

![Screenshot 2019-03-13 at 10.56.27.png](/t5/image/serverpage/image-id/48506i804DAC1235976E59/image-size/large?v=v2&px=999 "Screenshot 2019-03-13 at 10.56.27.png")

So, what I did was edit our workflow to add an extra step called Released:

![Screenshot 2019-03-13 at 10.59.34.png](/t5/image/serverpage/image-id/48507i06C85DF0733FE009/image-size/large?v=v2&px=999 "Screenshot 2019-03-13 at 10.59.34.png")

I then edit the transition for that step and added triggers like this:

1. Add trigger

2. Choose "Deployment successful"

3. The form appears and has correctly found my Bamboo server and release projects.

![Screenshot 2019-03-13 at 11.02.00.png](/t5/image/serverpage/image-id/48508iDB80325E4D9E3D26/image-size/large?v=v2&px=999 "Screenshot 2019-03-13 at 11.02.00.png")

I repeat this to add 3 triggers (we have 3 different Deployment projects for 3 different components of our system).

But nothing happens... The Deployment suceeds and in Bamboo I can see it has has listed the right Jira issue under "Issues"

But the issue never gets transitioned to "Released" in Jira.

There is nothing of note in the Bamboo error logs.

Any ideas?


Answers:
author: Daniel Santos
body: Hi [@John](/t5/user/viewprofilepage/user-id/2408399)

I was able to follow your description and reproduce this scenario. Thank you for sharing a detailed description of the issue. It is indeed a bug.

Our issue tracker already has a bug report for this problem as you can see below:

* [\[JSWCLOUD-16754\] Bamboo Deployment Workflow Triggers Do Not Function](https://jira.atlassian.com/browse/JSWCLOUD-16754)

I was thinking of options to work around this issue by using Jira REST API (as shared in this post [Solved: JIRA- How to change issue status via rest?](https://community.atlassian.com/t5/Jira-questions/JIRA-How-to-change-issue-status-via-rest/qaq-p/528133)) but I'm afraid that it will be challenging to decide when to trigger and what issues should be triggered in Jira automatically from a build.

I think that I would keep the manual deployment until this problem is fixed.

comments: author: John
body: Thanks very much - good to know. I will keep an eye on the bug report.

Alternatively, implementing [https://jira.atlassian.com/browse/JRASERVER-42177](https://jira.atlassian.com/browse/JRASERVER-42177 "https://jira.atlassian.com/browse/JRASERVER-42177") would be part of the way there as we could then at least query/report on issues which have been deployed.


author: John
body: Oh wait, that issue has been resolved...

I was under the impression it was not possible to query the \`development\` column in JQL? Maybe I'm wrong?

Basically we can \*see\* in Jira issue navigator where an issue has been deployed, I just can't figure out how to query on it.


author: Daniel Santos
body: Hi [@John](/t5/user/viewprofilepage/user-id/2408399)  

I'm sorry for the delay. The bug you saw resolved is for Jira server. Jira cloud still has the same issue, unfortunately. This the bug reporting it for Jira cloud is [\[JRACLOUD-42177\] Ability to view Bamboo builds and deployments in JIRA issue navigator.](https://jira.atlassian.com/browse/JRACLOUD-42177) So, in this case, the feature is not available.


author: John
body: Thanks for your reply.

So in summary, a feature which is still in the UI doesn't work and has been on the To-Do list for a year and a potential workaround is implemented but not for the cloud product.

I get the sense that Bamboo is not very high on Atlassian's priority any more. Is that the case?


author: Daniel Santos
body: Hi [@John](/t5/user/viewprofilepage/user-id/2408399)

Let me try to give you my perspective on this subject, which may clarify things a bit. First I want to fix what I wrongly said before, it is not a bug, but a feature request. Details about the integration with other products were priorly shown in the development panel and later with a feature request, they were implemented in JQL as well for Jira server. The room for improvement I see here is to understand why it was not yet implemented in Jira cloud. I believe there are technical reasons for that.

Since this is a feature request, we are following the [Implementation of New Features Policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) to decide if/when it will be implemented.
> I get the sense that Bamboo is not very high on Atlassian's priority any more. Is that the case?

What my experience says is that it has nothing to do with business priorities on Bamboo. It is just a feature request that is not very popular if compared with others and for this reason (and technical ones) it was not yet implemented on the cloud.

I'll flag that to our Jira development team to check if they have something to share about this.


author: John
body: Thanks Daniel, I appreciate your reply.

Just to be clear, when I was talking about a bug I was actually referring to <https://jira.atlassian.com/browse/JSWCLOUD-16754>. This is the showstopper for us. I think it's fair to say that this is definitely a bug as its a feature which appears in the UI of Jira which is not working.

<https://jira.atlassian.com/browse/JRACLOUD-42177> was just really a possible workaround to the above. If the above was fixed, we wouldn't care about about this one.

Thanks again for your perspective and other info.

Cheers,

John


author: Daniel Santos
body: Hi [@John](/t5/user/viewprofilepage/user-id/2408399)

Thank you very much for your feedback and comprehension. Yes, I didn't quite understand your reply and thought you were talking about a different issue. It all makes sense now. Thank you for taking the time to clarify it.

I've raised the flag to <https://jira.atlassian.com/browse/JSWCLOUD-16754> internally and now we need to wait and rely on what is prioritized for them.


author: John
body: Thanks for your help!


author: cmorlock
body: [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) [@John](/t5/user/viewprofilepage/user-id/2408399)

What version of JIRA supports the "deployment successful" trigger? Is it available on the server version of JIRA? That trigger would be super helpful, but it doesn't show up in the triggers list for the transitions.


author: Tobias F
body: Well, it seems Bamboo deployment triggers have been deprecated. <https://jira.atlassian.com/browse/JSWCLOUD-16754>![Screen Shot 2020-12-21 at 11.05.09 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/123070iC2F2DB7F2F607096/image-size/large?v=v2&px=999 "Screen Shot 2020-12-21 at 11.05.09 AM.png")


Tags: jira

trigger

workflow