I’m trying to connect my commits made through SourceTree with my JIRA issues but it’s not working properly. When I make commits in SourceTree (using GitLab as my repository), I write my commit messages like this:
PROJ-456 Fix validation bug
The ticket number PROJ-456 is from a story in JIRA. However, when I check the development section in JIRA, I don’t see any commits linked to this ticket.
I’m wondering what I might be missing:
- Is there a particular format I should use for commit messages?
- Are there any configuration changes needed in SourceTree?
- Do I need to set something up in JIRA to make this integration work?
I expected to see my commits appear automatically in the JIRA ticket but that’s not happening. Any help would be appreciated.
The commit message looks right, but JIRA usually takes time to pick up commits. I’ve seen it take anywhere from a few minutes to an hour - depends on your webhook setup. Make sure you’re actually pushing to the remote repo, not just committing locally. Also check that your GitLab project’s connected to the right JIRA instance. Sometimes it works for some projects but not others if something got screwed up during setup. Try a test commit and wait 30 minutes before checking JIRA.
check your gitlab-jira integration setup. same thing happened to me - turned out the integration was disabled in jira’s admin settings. took me forever to figure that out!
Had this exact issue last month. My JIRA project key didn’t match what I was using in commits. Double-check that “PROJ” is actually your correct JIRA project key - check any existing ticket URL or project settings. Also make sure your GitLab email matches what’s registered in JIRA, otherwise it won’t work even with everything else configured right. Wasted two days before I realized I was using an old project key that changed during a reorganization.
This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.