-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 9.4.0, 9.4.9
-
Component/s: AppLinks
-
None
-
1
-
Severity 3 - Minor
Issue Summary
The Smart Commits integration between Bitbucket Data Center and Jira Cloud does not work if:
- IP Allowlist is enabled for the Jira Cloud site, and
- Bitbucket DC server IP is not included in the allowlist
Because Bitbucket's IP is not in the allowlist, it is unable to query the consumer capabilities of the Jira Cloud site via the <JIRA_CLOUD_URL>/rest/remote-event-consumer/1/capabilities endpoint. Calling this endpoint returns a 403 Forbidden response with body:
{
"errorMessages": [
"You're unable to access content because your IP address is not listed in the IP allowlist. Contact your admin for help."
],
"errors": {}
}
Consequently, Bitbucket is unaware that the Jira Cloud site supported the JiraCommitEvent capability for receiving smart commits and does not dispatch these events to Jira Cloud.
Steps to Reproduce
- Configure application links between Bitbucket Data Center and Jira Cloud
- Enable Smart commits
- Enable the IP Allowlist in Jira Cloud.
- Do not add Bitbucket DC server IP(s) to the IP allowlist
- Test the smart commits feature
Expected Results
The IP Allowlist documentation mentions that IP allowlist restrictions are not applied to Application links that use TwoLeggedOAuth. Given that smart commits utilize application links, this suggests they should function normally.
Actual Results
Smart commit events are not dispatched to Jira Cloud.
If debug logging is enabled in Bitbucket, logs will show that the
com.atlassian.devstatus.vcs.JiraCommitEvent event does not have any consumer apps, e.g.
2025-12-26 12:02:52,795 DEBUG [AtlassianEvent::thread-8] c.a.e.r.impl.RemoteEventDispatcher RemoteEvent com.atlassian.devstatus.vcs.JiraCommitEvent@43ead560[author=com.atlassian.devstatus.Person@604ed172,authorDate=Fri Dec 26 12:02:51 AEDT 2025,commitDate=<null>,commitMessage=ISSUE-123 #comment test,committer=<null>,mergeCommit=false,type=CREATE,entity=com.atlassian.devstatus.EventEntity@49c487a2[id=33f7c9d8b030f88e57d4100f5b4700d776851c4d,displayId=33f7c9d8b03,resource=http://localhost:6949/b949/projects/PROJ1/repos/repo949a/commits/33f7c9d8b030f88e57d4100f5b4700d776851c4d],initiator=com.atlassian.devstatus.EventInitiator@6a909913[emails=[admin@test.com],username=admin,displayName=admin,resource=http://localhost:6949/b949/users/admin,avatar=http://www.gravatar.com/avatar/260009a315f1d045d244cb93c9ce27ea.jpg?s=128&d=mm],issue8eys=[ISSUE-123],sourceId=<null>,sourceUrl=<null>] consumable by []
- smart commit: ISSUE-123 #comment test
- list of capable consumer apps is empty ( "consumable by []" )
Workaround
Add Bitbucket DC server IP(s) to the IP Allowlist.