Sync "Story point estimate value" in jira server

Originally asked by Vinay on 16 September 2021 (original question)


We are syncing the date from Jira cloud to Jira server

Jira cloud custom field type: Story point estimate value

Jira server custom field type: Number

  • Seems like it is not compatible. What is the compatible custom field in Jira server for “Story point estimate value” custom field

Comments:

Ariel Aguilar commented on 22 September 2021

Hi Vinay,

When you say it is not working, or it is not compatible, can you please elaborate on what have you tried which did not work?

Vinay commented on 23 September 2021

Hi Ariel,

issue.customFields.“Story Points”.value = replica.customFields.“Story point estimate”.value

I used above syntax to sync “Story point estimate” from Jira cloud to “Story Points” in Jira server

I’m getting below error

Exalate has problems while trying to create an issue in this Jira. Details: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB - com.google.gson.JsonPrimitive cannot be cast to java.lang.Double

Ariel Aguilar commented on 27 September 2021

Hi Vinay,

May I know what did you use for the Outgoing script in Jira Cloud? Then, on Jira server if you take a look on Entity sync status, and you look for “Show remote replica” are you able to see any value on the payload for the “Story point estimate” custom field?

Kind regards,

Ariel

Vinay commented on 28 September 2021

Hi Ariel Aguilar ,

Outgoing script : replica.customFields.“Story point estimate” = issue.customFields.“Story point estimate”

Payload Value :

 "Story point estimate": {
        "id": 10606,
        "name": "Story point estimate",
        "uid": "10606",
        "type": "UNHANDLED",
        "value": 2
      },  
  
  
Error Details :  
  

Error Type:

  
Issue Tracker Error

Error Creation Time:

  
2021-09-28 03:54:13.823

Error Detail Message:

  
Exalate has problems while trying to create an issue in this Jira. Details: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: <http://confluence.atlassian.com/x/3McB> - com.google.gson.JsonPrimitive cannot be cast to java.lang.Double

Error Stack Trace

com.exalate.api.exception.IssueTrackerException: Exalate has problems while trying to create an issue in this Jira. Details: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB - com.google.gson.JsonPrimitive cannot be cast to java.lang.Double at com.exalate.node.compatibility.CompatibilityService.createIssueObject(CompatibilityService.java:657) at com.exalate.node.hubobject.v1_4.NodeHubIssueHelper.createIssue(NodeHubIssueHelper.java:625) at com.exalate.node.hubobject.v1_4.NodeHubIssueHelper.createIssueWith(NodeHubIssueHelper.java:523) at com.exalate.compatibility.HubObjectHelperAdapter.createNodeIssueWith(HubObjectHelperAdapter.java:42) at com.exalate.hubobject.v1_2.HubObjectHelper.createNodeIssueWith(HubObjectHelper.java:325) at com.exalate.processor.jira.JiraCreateIssueProcessor.applyProcessorResult(JiraCreateIssueProcessor.java:412) at com.exalate.processor.jira.JiraCreateIssueProcessor.applyProcessorResult(JiraCreateIssueProcessor.java:388) at com.exalate.processor.jira.JiraCreateIssueProcessor.createIssue(JiraCreateIssueProcessor.java:204) at com.exalate.replication.request.CreateIssueSyncRequestState.transition(CreateIssueSyncRequestState.java:81) at com.exalate.replication.request.CreateIssueSyncRequestState.transition(CreateIssueSyncRequestState.java:28) at com.exalate.replication.in.RequestProcessorService.processSyncRequest(RequestProcessorService.java:320) at com.exalate.replication.in.RequestProcessorService.processSyncRequestsForIssue(RequestProcessorService.java:190) at com.exalate.replication.in.RequestProcessorService.processSyncRequests(RequestProcessorService.java:127) at com.exalate.replication.in.RequestWorker$1.run(RequestWorker.java:83) at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService.lambda$executeHandlingLocks$0(ClusteredSensitiveExecutorService.java:31) at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService.executeHandlingLocks(ClusteredSensitiveExecutorService.java:46) at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService.executeHandlingLocks(ClusteredSensitiveExecutorService.java:29) at com.exalate.replication.in.RequestWorker.run(RequestWorker.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:522) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:616) at com.atlassian.jira.issue.managers.RequestCachingIssueManager.createIssueObject(RequestCachingIssueManager.java:212) at sun.reflect.GeneratedMethodAccessor4494.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy309.createIssueObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor4494.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131) at com.sun.proxy.$Proxy309.createIssueObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.exalate.util.reflection.ReflectionUtils.invokeMethod(ReflectionUtils.java:102) at com.exalate.node.compatibility.CompatibilityService.createIssueObject(CompatibilityService.java:642) … 24 more Caused by: com.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:778) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:513) … 42 more Caused by: java.lang.ClassCastException: com.google.gson.JsonPrimitive cannot be cast to java.lang.Double at com.atlassian.jira.issue.customfields.impl.NumberCFType.getDbValueFromObject(NumberCFType.java:46) at com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType.createValue(AbstractSingleFieldType.java:144) at com.atlassian.jira.issue.fields.ImmutableCustomField.createValue(ImmutableCustomField.java:693) at com.atlassian.jira.workflow.function.issue.IssueCreateFunction.execute(IssueCreateFunction.java:84) at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014) at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:606) at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:754) … 43 more