Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3231

JIRA indexing does not pick up commits for a couple of hours.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.3.1
    • 1.3.0
    • Integration - JIRA
    • None

      From: https://answers.atlassian.com/questions/99642/jira-with-stash-browse-source-without-fisheye

      I was facing the same problem. I created the trusted link both ways, and committed with Jira Issue Keys in comments but nothing happened. As per the documentation, Stash waits for the first commit with a Jira Issue Key and then indexes the entire repository. However, it did not seem to work for me.

      Then I made another commit with issue keys in [], so if a issue key is "IT-567", in comments I put "[IT-567] Making changes to hello" and immediately after doing this, it showed all the commits in JIRA, and from now on, it started showing even the commits without [] in jira keys. So everything works now.

      And

      well, I had created a new test server, and had created just one project, and one repository in it, and have just added one file so I don't see why it should take time. After app linking, I committed same file three times by making small changes, and it did not work. I waited like 15 minutes, but it did not work. And then later at the day, I used [] in keys and it worked. If it was time, then Atlassian have forgot to put in document to wait for a couple of hours before trying. I am sure the keys entered were correct because I just used the same keys all the time, and after first successful linking, all of them are being shown linked in the repo.

      A number of options:

      • Indexing is not running / all indexing threads are busy indexing other repositories.
      • The UI isn't showing the JIRA keys, even though the application links have been created. In that case the 'Issues' column on the commits list shouldn't be displayed at all. Maybe the conditions that control the visibility of the Issues column use caching?

            [BSERV-3231] JIRA indexing does not pick up commits for a couple of hours.

            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 1447640 ] New: JAC Bug Workflow v3 [ 3136635 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 514603 ] New: Stash Workflow - Restricted [ 1447640 ]
            jhinch (Atlassian) made changes -
            Component/s New: Integration - JIRA [ 17992 ]

            Thanks Mike, that seems to have fixed that. We restarted Stash, and also upgraded to 2.2 and things are looking fine.

            Gaurav Mishra added a comment - Thanks Mike, that seems to have fixed that. We restarted Stash, and also upgraded to 2.2 and things are looking fine.
            Michael Heemskerk (Inactive) made changes -
            Affects Version/s New: 1.3.0 [ 27908 ]
            Michael Heemskerk (Inactive) made changes -
            Fix Version/s New: 1.3.1 [ 28401 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Needs Triage [ 10030 ] New: Closed [ 6 ]

            Thanks Guarav,

            I've been able to track down the issue using Stash 1.3.0. There was a bug in 1.3.0 that caused the prevented indexing from running when the initial indexing run was skipped (because no JIRA applink was found). I'm guessing that you've restarted Stash at some point after which it started working again? Anyway, the bug has been fixed in the 1.3.1 release, so upgrading to any newer version should solve the issue.

            Michael Heemskerk (Inactive) added a comment - Thanks Guarav, I've been able to track down the issue using Stash 1.3.0. There was a bug in 1.3.0 that caused the prevented indexing from running when the initial indexing run was skipped (because no JIRA applink was found). I'm guessing that you've restarted Stash at some point after which it started working again? Anyway, the bug has been fixed in the 1.3.1 release, so upgrading to any newer version should solve the issue.

            Stash Version we are using - 1.3.0
            Jira Version : 5.1.4
            Fisheye Plugin : Updated to latest available version when it did not work. Nothing changed after update though, and can't remember the previous version of it we had got installed.

            Gaurav Mishra added a comment - Stash Version we are using - 1.3.0 Jira Version : 5.1.4 Fisheye Plugin : Updated to latest available version when it did not work. Nothing changed after update though, and can't remember the previous version of it we had got installed.
            Michael Heemskerk (Inactive) created issue -

              Unassigned Unassigned
              mheemskerk Michael Heemskerk (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: