-
Bug
-
Resolution: Fixed
-
Low (View bug fix roadmap)
-
10.0.0, 10.1.1, 10.1.2
-
10
-
2
-
Severity 2 - Major
-
5
-
Issue Summary
Attempting to leverage smart commits (comment, transition, time, etc) doesn't work.
This is reproducible on Data Center: Yes
Steps to Reproduce
- Install Bitbucket Data Center
- Install Jira 10+
- Application link the two products
- Create a repository in Bitbucket and a Project/issue TEST-1 in jira
- Push a commit with the message "TEST-1 #comment testing"
Expected Results
The commit shows up in the development panel and a comment 'testing' is added to the ticket 'TEST-1'
Actual Results
The commit shows up in the development panel, but no comment.
The below exception is thrown in the xxxxxxx.log file:
2024-10-31 17:54:58,757+0000 JIRA-EventThread-6 ERROR admin [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.devstatus.vcs.JiraCommitEvent@650cd667[author=com.atlassian.devstatus.Person@5910fe7a,authorDate=Thu Oct 31 17:54:54 UTC 2024,commitDate=<null>,commitMessage=TEST-1 #comment testing,committer=<null>,mergeCommit=false,type=CREATE,entity=com.atlassian.devstatus.EventEntity@e0c784e[id=3eabb6f38c7b6f776a6292d18b9abf19443454bd,displayId=3eabb6f38c7,resource=<BITBUCKET_BASE_URL>/bitbucket/projects/TEST/repos/test/commits/3eabb6f38c7b6f776a6292d18b9abf19443454bd],initiator=com.atlassian.devstatus.EventInitiator@299c31ff[emails=[admin@localhost],username=admin,displayName=admin,resource=https://linux-84681.prod.atl-cd.net/bitbucket/users/admin,avatar=https://secure.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56.jpg?s=128&d=mm],issueKeys=[TEST-1],sourceId=78617614-a311-3f5e-8abf-d295d83ec90f,sourceUrl=<BITBUCKET_BASE_URL>/bitbucket]] from the invoker [com.atlassian.event.internal.ComparableListenerInvoker@3f0c5ab8] java.lang.RuntimeException: 'com.atlassian.fugue.Either com.atlassian.jira.issue.fields.rest.IssueFinderV2.findIssue(java.lang.String)'. Listener: com.atlassian.jira.plugin.devstatus.triggers.DevtoolsWorkflowEventBridge event: com.atlassian.devstatus.vcs.JiraCommitEvent at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:53) at com.atlassian.diagnostics.internal.platform.monitor.event.EventSystemMonitor.invokeMonitored(EventSystemMonitor.java:105) at com.atlassian.diagnostics.internal.platform.monitor.event.MonitoredListenerInvoker.invoke(MonitoredListenerInvoker.java:38) at com.atlassian.event.internal.ComparableListenerInvoker.invoke(ComparableListenerInvoker.java:48) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda$static$0(AsynchronousAbleEventDispatcher.java:37) at com.atlassian.jira.event.JiraEventExecutorFactory$1.lambda$execute$0(JiraEventExecutorFactory.java:47) at com.atlassian.jira.util.thread.JiraThreadLocalUtils.lambda$wrap$1(JiraThreadLocalUtils.java:156) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.NoSuchMethodError: 'com.atlassian.fugue.Either com.atlassian.jira.issue.fields.rest.IssueFinderV2.findIssue(java.lang.String)' at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.getIssue(DefaultSmartCommitsService.java:300) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.processCommand(DefaultSmartCommitsService.java:292) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.lambda$processCommands$9(DefaultSmartCommitsService.java:282) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:693) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.processCommands(DefaultSmartCommitsService.java:285) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.lambda$doCommands$6(DefaultSmartCommitsService.java:241) at io.atlassian.fugue.Either$Right.fold(Either.java:641) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.doCommands(DefaultSmartCommitsService.java:237) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.performCommandsAndLogResult(DefaultSmartCommitsService.java:208) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.lambda$processCommit$2(DefaultSmartCommitsService.java:148) at io.atlassian.fugue.Either$Right.fold(Either.java:641) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsService.processCommit(DefaultSmartCommitsService.java:148) at com.atlassian.jira.plugin.devstatus.smartcommits.DefaultSmartCommitsEventBridge.processCommit(DefaultSmartCommitsEventBridge.java:111) at com.atlassian.jira.plugin.devstatus.triggers.DevtoolsWorkflowEventBridge.onCommit(DevtoolsWorkflowEventBridge.java:126) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:42) ... 9 more
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available