Overview
CommitSync posts a comment on a Jira issue every time someone pushes a commit that mentions it. Developers keep writing commits the way they already do; the issue gets a running record of the code work behind it.
It works with GitHub, GitLab, Bitbucket Cloud and Azure DevOps. Each comment includes the commit author’s name, the commit message, the branch, the repository and a link back to the commit.
How it works
- A developer pushes a commit whose message contains an issue key, such as PROJ-42.
- Your git platform sends a webhook to CommitSync.
- The app finds every issue key in the message and checks that each issue exists on your Jira site.
- It adds a comment to each matching issue, usually within a few seconds.
Who this guide is for
- Jira and repository admins — install the app and connect your repositories once (Installation and Connect your repositories).
- Developers — nothing to install or configure; see Everyday use.
Installation
Install CommitSync from the Atlassian Marketplace in a few clicks; no servers, scripts or command-line tools are needed.
You need
- A Jira Cloud site and Jira site admin rights to install apps.
- Admin rights on each repository you want to connect. To connect every repository at once with a workspace, organization or group webhook, you need the owner role at that level.
Install the app
- In Jira, go to Apps → Explore more apps (or open the CommitSync listing on the Atlassian Marketplace).
- Search for CommitSync and select Get app.
- Review the permissions the app requests and confirm the install.
Permissions the app requests
| Scope | Why it’s needed |
|---|---|
read:jira-work |
Look up projects and confirm an issue exists before commenting |
write:jira-work |
Add the commit comment to the issue |
storage:app |
Store the app’s own settings for your site |
Each installation serves one Jira site. If your organization has several Jira sites, install the app on each one and connect repositories to each separately.
Connect your repositories
Connect each git platform once by adding a webhook that points at your site’s CommitSync URL. Allow about 10 minutes per platform.
Step 1: Copy your webhook URL and secret
- In Jira, go to Settings (gear icon) → Apps → Manage apps, find CommitSync and select Configure.
- Copy the webhook URL for each platform you plan to connect. Each platform has its own URL, and the URLs are unique to your Jira site.
- Copy the webhook secret for each platform. Use a different secret for each platform, and keep secrets private: anyone with the URL and secret can post to your app.
Step 2: Add the webhook on your git platform
For a small number of repositories, add a webhook to each repository:
| Platform | Where to add it | URL to enter | Where the secret goes | Event to send |
|---|---|---|---|---|
| GitHub | Repository → Settings → Webhooks → Add webhook | Your GitHub webhook URL | Secret field | Just the push event |
| GitLab | Project → Settings → Webhooks | Your GitLab webhook URL | Secret token field | Push events only |
| Bitbucket Cloud | Repository → Repository settings → Webhooks | <Bitbucket webhook URL>?secret=<your secret> |
In the URL, as shown | Repository: Push |
| Azure DevOps | Project settings → Service hooks → Web Hooks | <Azure DevOps webhook URL>?secret=<your secret> |
In the URL, as shown | Code pushed |
For GitHub, set the content type to application/json.
Connecting many repositories at once
Instead of one webhook per repository, you can add a single webhook at a higher level: a GitHub organization webhook, a GitLab group webhook, or a Bitbucket Cloud workspace webhook. Use the same URL, secret and push event as above.
Bitbucket Cloud workspace webhooks can only be created through the Bitbucket API, by a workspace Owner, with an access token that has webhook permissions:
curl --request POST \
--url 'https://api.bitbucket.org/2.0/workspaces/<workspace-slug>/hooks' \
--header 'Authorization: Bearer <access-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"description": "CommitSync",
"url": "<Bitbucket webhook URL>?secret=<your secret>",
"active": true,
"events": ["repo:push"]
}'
Step 3: Test the connection
Push a commit that mentions an issue that exists on your Jira site:
git commit --allow-empty -m "PROJ-1: testing CommitSync"
git push
Within a few seconds, a comment should appear on PROJ-1. Most git platforms also show the webhook delivery and its response code on the webhook’s settings page; a successful delivery returns 200. If no comment appears, see Troubleshooting.
Everyday use
Developers don’t install, sign in to or configure anything: put the issue key in the commit message and push.
- Include the issue key anywhere in the commit message:
git commit -m "PROJ-42: fix broken pagination on admin panel" - Push as usual:
git push - Within a few seconds, a comment appears on PROJ-42 with your name, the commit message, the branch, the repository and a link to the commit.
Good to know
| Behavior | Example |
|---|---|
| Issue keys are not case-sensitive | proj-42, Proj-42 and PROJ-42 all work |
| The key can appear anywhere in the message | fixes login bug, closes PROJ-42 |
| Several keys in one commit each get a comment | PROJ-42, PROJ-51: shared fix comments on both issues |
| The issue must already exist in Jira | A mistyped or not-yet-created key is skipped, with no error shown |
| Only regular pushes are processed | Pull/merge request merges, force-pushes and tags don’t create comments |
New Jira projects are recognized within about 15 minutes of being created.
Troubleshooting
Most problems show up in your git platform’s webhook delivery history, so check the response code there first.
| Symptom | Likely cause | What to do |
|---|---|---|
| Webhook delivery fails with 401 | The secret on the git platform doesn’t match the one in the app’s settings | Copy the secret from the app’s Configure page again and paste it into the webhook (or the ?secret= part of the URL for Bitbucket and Azure DevOps) |
| Delivery succeeds but no comment appears | The issue key doesn’t exist on this Jira site, or the project was created in the last 15 minutes | Check the key for typos and confirm the issue exists; wait 15 minutes for new projects |
| Delivery succeeds but no comment appears on one project | The project’s permissions stop the app from adding comments | Ask your Jira admin to confirm apps can browse and comment in that project |
| Comments appear for one Jira site but not another | Each installation covers one site, and the webhook points at the other site’s URL | Copy the webhook URL from the Configure page of the site you want, and update the webhook |
| Merges, tags or force-pushes don’t create comments | These events aren’t processed | Expected behavior; comments come from regular pushes |
| Delivery fails with another 4xx or 5xx code | Varies | Contact support with the time of the push, the repository and the response code |
FAQ
Does this replace Jira’s built-in Smart Commits? No. CommitSync adds a comment for each commit and works across GitHub, GitLab, Bitbucket Cloud and Azure DevOps. It does not transition issues or log time.
Do developers need a Jira account? The comment is posted by the app and shows the commit author’s name from git, so the author doesn’t need to sign in to Jira.
Can one installation serve several Jira sites? No. Install the app on each site and point each repository’s webhook at the site where its issues live.
Data and privacy
CommitSync is built on Atlassian Forge and runs on Atlassian’s cloud platform.
- What it reads: the push payload your git platform sends, including commit messages, author names, branch names, repository names and commit links.
- What it writes: one comment per referenced issue, containing the details above.
- What it stores: its own settings for your site, and a list of your Jira project keys that refreshes every 15 minutes. It does not store commit contents or source code.
Support
For help, email [email protected] or visit appalassians.com.