Internal server error posting Worklog to Tempo REST API

mikerussellnz August 3, 2017

Posting this json to /tempo-timesheets/3/worklogs/ produces a 500 response and the stack trace below.   What data am I missing in my request?

{

  "issue":{  
      "key":"AXNP-4022",
      "remainingEstimateSeconds":0
   },
   "dateStarted":"2017-08-04T00:00:00.000+0000",
   "timeSpentSeconds":3600,
   "comment":"Automatic !!!!! MWWAAAHHH"
}

 

"stack-trace" -> "java.lang.NullPointerException
at com.tempoplugin.worklog.restv3.TempoWorklog$Builder.<init>(TempoWorklog.java:120)
at com.tempoplugin.worklog.restv3.WorklogsResource$CreateBeanValidator.getWorklogBuilder(WorklogsResource.java:450)
at com.tempoplugin.worklog.restv3.WorklogsResource$BeanValidator.validate(WorklogsResource.java:379)
at com.tempoplugin.worklog.restv3.WorklogsResource.createWorklog(WorklogsResource.java:159)
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:497)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100)
at com.atlassian.plugins"

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events