Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-20117

Removing a branch in Bitbucket causes the Development Panel to still show a branch if connected to Fisheye / Crucible

      Environment

      • Jira Software 8.2
      • Fisheye / Crucible 4.7.0
      • Bitbucket 6.3.2

      Steps to reproduce

      1. Install and connect Jira, Bibtucket and Fisheye
      2. Connect Bitbucket's repository to Fecru according to Setting up a Git repository in Crucible
      3. In your checked-out code, create a branch and push it to Bitbucket
        • At this point, Jira should show only one Branch (from Bibtucket)
      4. Add a file to the repository, commit it and push it to the branch
        • Jira should then display 2 branches (one from "Fisheye / Crucible" and one from "Bitbucket Server")
      5. Then, checkout a different branch locally, and delete the branch used previously from local and remote
        • In Jira, the Development panel will show 1 branch, but clicking it will show You don't have access to view all related branches. Please contact your administrator.

      Expected Behavior

      Jira should not display any branches on the related issues

      Actual Behavior

      Jira still shows 1 branch, but clicking on it shows:

      You don't have access to view all related branches. Please contact your administrator.

      Notes

      • The repository in Fecru correctly doesn't display the branch information immediately after it's removed
      • Reindexing the repository in Fecru will remove the references to the commited file, but will not impact Jira
      • In Jira's database we can see:
        WITH applinks AS (SELECT SUBSTR(a.property_key,16,36) as "appkey", b.propertyvalue as "appname" FROM propertyentry a join propertystring b on a.id=b.id where a.property_key like 'applinks.admin%name')
        
        SELECT a.appname, s."UPDATED", s."JSON" FROM "AO_575BF5_DEV_SUMMARY" s 
        JOIN applinks a ON a.appkey = s."PROVIDER_SOURCE_ID"
        WHERE "JSON" like '%SCRUM-28%';
        
          appname  |         UPDATED         |                                                                                                                                            JSON
        -----------+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         FeCru     | 2019-06-26 10:32:08.512 | {"value":{"targets":{"SCRUM-28":[{"type":{"id":"repository"},"objects":[]},{"type":{"id":"review"},"objects":[]},{"type":{"id":"branch"},"objects":[{"lastUpdated":"2019-06-26T10:30:54.000+0200","count":1,"branches":["feature/SCRUM-28-create-song"]}]}]}},"expiry":9223371721494775807}
         Bitbucket | 2019-06-26 10:35:02.405 | {"value":{"targets":{"SCRUM-28":[{"type":{"id":"repository"},"objects":[]},{"type":{"id":"branch"},"objects":[]},{"type":{"id":"pullrequest"},"objects":[]}]}},"expiry":9223371721494775807}
        (2 rows)
        

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [JSWSERVER-20117] Removing a branch in Bitbucket causes the Development Panel to still show a branch if connected to Fisheye / Crucible

            The JSWSERVER-20117 is blocked by FE-6524. The fix requires a change in Fisheye. It shall notify Jira about changes in existing commits or removals of existing commits / branches.

            Marek Parfianowicz added a comment - The  JSWSERVER-20117 is blocked by FE-6524 . The fix requires a change in Fisheye. It shall notify Jira about changes in existing commits or removals of existing commits / branches.

            Could you provide more details, please?

             

            Reindexing the repository in Fecru will remove the references to the commited file, but will not impact Jira

            Did you:

            • trigger a full re-index manually,
            • trigger an incremental index manually,
            • have to wait until next incremental index happens automatically (depending on commit hooks / polling settings in Fisheye)?

            In other words, I would like to know whether Fisheye managed to pick up the change automatically (but just needed a bit more time than Bitbucket) or it required an admin intervention.

             

            Reindexing the repository in Fecru will remove the references to the commited file, but will not impact Jira

            What do you mean by this:

            • a file has been removed, 
            • a branch has been removed
            • or both?

             

            Marek Parfianowicz added a comment - Could you provide more details, please?   Reindexing the repository in Fecru will remove the references to the commited file, but will not impact Jira Did you: trigger a full re-index manually, trigger an incremental index manually, have to wait until next incremental index happens automatically (depending on commit hooks / polling settings in Fisheye)? In other words, I would like to know whether Fisheye managed to pick up the change automatically (but just needed a bit more time than Bitbucket) or it required an admin intervention.   Reindexing the repository in Fecru will remove the references to the commited file , but will not impact Jira What do you mean by this: a file has been removed,  a branch has been removed or both?  

              Unassigned Unassigned
              mfernandes@atlassian.com Matheus Fernandes
              Affected customers:
              6 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated: