Hi
I am trying to create a SubTask using Script Runner Post function and I am Getting the following Error message.
I already added the Time track function to the Screen and still not recognize.
Any thoughts. Script Runner.JPG
2017-01-17 21:40:21,509 INFO - Serializing object into 'interface java.util.Map'
2017-01-17 21:40:21,512 WARN - POST request to https://scriptrunner.connect.adaptavist.com/jira/proxy/rest/api/2/issue returned an error code: status: 400 - Bad Request
body: [errorMessages:[], errors:[originalEstimate:Field 'originalEstimate' cannot be set. It is not on the appropriate screen, or unknown.]]
2017-01-17 21:40:21,513 INFO - POST /rest/api/2/issue asObject Request Duration: 435ms
2017-01-17 21:40:21,531 ERROR - assert resp.status >= 200 && resp.status < 300 && subtask && subtask.key != null
| | | | | | | | |
| 400 true | | 400 false false false
| | status: 400 - Bad Request
| | body: [errorMessages:[], errors:[originalEstimate:Field 'originalEstimate' cannot be set. It is not on the appropriate screen, or unknown.]]
| false
status: 400 - Bad Request
body: [errorMessages:[], errors:[originalEstimate:Field 'originalEstimate' cannot be set. It is not on the appropriate screen, or unknown.]]
2017-01-17 21:40:21,539 ERROR - Class: com.adaptavist.sr.cloud.workflow.CreateSubtask, Config: [className:com.adaptavist.sr.cloud.workflow.CreateSubtask, uuid:ee89ea6f-a9ab-4be5-9b21-d41a22578af8, description:Close Job .25hrs, condition:, summary:Close Job .25hrs, issueTypeId:5, executionUser:INITIATING_USER, additionalCode:def tasktime ="1h"
subtask.fields.originalEstimate = tasktime
def user = [name: "KellyT"]
subtask.fields.assignee = user]