Automatic branch detection does not create link to JIRA Automatically

brent bae September 26, 2017

Hi,

I created a build plan and configured and enable automatic branch detection and automatic creation for remote links for JIRA issues to plan branch as following screen shot.

Screen Shot 2017-09-26 at 9.32.40 AM.png

 

So I created Jira issue and then create branch by clicking "create branch " button on the right side menu.

Screen Shot 2017-09-26 at 9.41.00 AM.png

 

Then it redirect to branch creation bitbucket page and I created branch with the name which contains Jira issue key. 

After few moment, Bamboo successfully create plan branch and run build plan for newly created branch as I expected. 

 

However, it does not automatically create remote link from Jira issue to plan branches but only create a link in bamboo with manual creation button as following screen shot.

 

Screen Shot 2017-09-26 at 9.32.21 AM.png

 

So I searched if other people has similar issue and find out it was bug on previous version of bamboo and reported as resolved.

https://jira.atlassian.com/browse/BAM-13313

 

But I'm currently having similar issue and not sure how to resolve that.

 

Below is the current version information for applications we are using.

Bamboo: 6.1.1

JIRA: 7.3.6

Bitbucket: Cloud

 

Please let me know if there is a way to resolve it.

 

Thank you

 

 

 

 

 

 

 

 

1 answer

0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2017

What's the version of Jira, Bamboo and Bitbucket Server do you use?

brent bae September 26, 2017

we are using

Bamboo: 6.1.1

Jira: 7.3.6

Bitbucket: Cloud 

Thanks

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2017

Can you please enable DEBUG logs for com.atlassian.bamboo.jira.issuelink.JiraBranchLinkingServiceImpl. 

You can do it in Administration > Log settings

Capture 2017-09-03 at 0.51.46.pngThen check messages in logs from JiraBranchLinkingServiceImpl

brent bae September 27, 2017

Here is the logs for JiraBranchLinkingServiceImpl

The last log says Authentication is required, but I already linked bamboo with Jira via OAuth for both incoming and outgoing connections.

2017-09-27 13:10:05,576 DEBUG [11-BranchJiraLinkingBackgroundThread:pool-18-thread-63] [JiraBranchLinkingServiceImpl] Detecting linked JIRA issues for branch 'BAM-PRTP13'

2017-09-27 13:10:05,587 DEBUG [11-BranchJiraLinkingBackgroundThread:pool-18-thread-63] [JiraBranchLinkingServiceImpl] Checking branch name 'CI-29-bamboo-test-issue-3' for issue keys

2017-09-27 13:10:05,589 DEBUG [11-BranchJiraLinkingBackgroundThread:pool-18-thread-63] [JiraBranchLinkingServiceImpl] Found issue key 'CI-29'

2017-09-27 13:10:05,589 DEBUG [11-BranchJiraLinkingBackgroundThread:pool-18-thread-63] [JiraBranchLinkingServiceImpl] Creating remote link from issue 'CI-29' to branch 'BambooTest - pull request test plan - CI-29-bamboo-test-issue-3'

2017-09-27 13:10:05,599 WARN [11-BranchJiraLinkingBackgroundThread:pool-18-thread-63] [JiraBranchLinkingServiceImpl] Could not link branch 'CI-29' to branch 'BambooTest - pull request test plan - CI-29-bamboo-test-issue-3'. Authentication required.

 

Also when I first attempt to automatic branch creation and check to see if it is creating Jira issue link correctly,  Bamboo asked for authentication from Jira side with currently logon Jira user.

 

Screen Shot 2017-09-27 at 9.27.46 AM.png

 

So authenticate and allow read and write access as Jira admin user for Bamboo application.

 Screen Shot 2017-09-27 at 9.34.28 AM.jpg

 

I'm not sure if there is anything that i missed?

 

 

 

 

 

 

brent bae October 6, 2017

@Alexey Chystoprudov Please see my reply above. I still could not figure out how to fix that......

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 10, 2017

@brent bae, sorry for delay. Looks like it requires more investigation. Can you please raise an issue at support.atlassian.com? Our support engineers will do their best to solve this issue

Jeff Crawford November 8, 2017

I have this exact same problem.  We are using Jira Cloud connected to internal Bamboo and Bitbucket Servers.  All other application-link related functionality works.

 Jira 4212ad73
Bamboo version 6.2.1 build 60208 - 27 Sep 1

Bitbucket 5.4.0

 

I found the Jira issue for this.  It appears to be Resovled.  However, I can confirm this problem still exists. 

https://jira.atlassian.com/browse/BAM-13313

Deleted user May 11, 2018

@Alexey Chystoprudov, any update on this issue? encountered the same issue. 

Bamboo 6.4.1

JIRA 7.1.0

BitBucket 4.12.0

  1. 2018-05-11 17:51:58,603 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-8] [BranchDetectionServiceImpl] Created branch with key MP-MPADP7 for VCS branch VCS Branch [feature/QM-57-bamboo-plan-branches-demo]
  2. 2018-05-11 17:51:58,678 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-3] [InitialBuildListener] Initial build for MP-MPADP7
  3. 2018-05-11 17:51:58,718 WARN [11-BranchJiraLinkingBackgroundThread:pool-18-thread-7] [JiraBranchLinkingServiceImpl] Could not link branch 'QM-57' to branch 'Management Portal - Management Portal Automated Deployment Plan - feature-QM-57-bamboo-plan-branches-demo'. Authentication required.
  4. 2018-05-11 17:51:58,813 INFO [11-BranchJiraLinkingBackgroundThread:pool-18-thread-7] [ImmutablePlanCacheServiceImpl] Invalidating MP-MPADP7
  5. 2018-05-11 17:51:58,878 WARN [11-BranchJiraLinkingBackgroundThread:pool-18-thread-8] [JiraBranchLinkingServiceImpl] Could not link branch 'QM-57' to branch 'Management Portal - Management Portal Automated Deployment Plan - feature-QM-57-bamboo-plan-branches-demo'. Authentication required.
  6. 2018-05-11 17:51:58,901 INFO [11-BranchJiraLinkingBackgroundThread:pool-18-thread-8] [ImmutablePlanCacheServiceImpl] Invalidating MP-MPADP7
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2018

@[deleted] please raise support ticket, we need more information about your environment to understand the root cause

Deleted user May 18, 2018

@Alexey Chystoprudov, the issue seems only occurs when the plan branch is created automatically by pull request event; when I manually create plan branch that associates with the Stash branch, it would automatically generate the application link in the JIRA ticket. It is exactly same as described in the above link, https://jira.atlassian.com/browse/BAM-13313

new to the Bamboo, try to create a support ticket for this, but cannot find the correct way to create ticket for Bamboo issue. Also, tried to follow documentation here, the https://confluence.atlassian.com/bamboo/raising-a-request-with-atlassian-support-625672748.html

Screen Shot 2018-05-18 at 5.32.12 PM.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events