Hi,
I set JMWE post-function to one of my workflow with the hope that when it goes through one of the transition, it will automatically clone the issue to another project and link it to the original issue.
After setting it up, the issue was cloned successfully to the target project with the correct fields BUT it's not linked to the original issue.
There's also some error 400 in the error log.
[2019-05-14T13:59:13.624Z] ERROR: mwec/4 on 7542ca2d-26ed-4f4f-b819-ef32d47304a9: Incorrect request: ["We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."] (accountId=557058:ad944671-a0b9-46e0-8f58-f91911fdee7f, msgType=workflow-error, requestId=a67f334b-80ef-44e4-9e5a-21f0f8deaa0c, issueKey=BR-436, postFunctionId=482279d6-3fff-4c9a-961b-748e7788e530, accountType=atlassian, during=post-function-execution, userName=katherine.japutra, clientUrl=https://flaconi.atlassian.net, postFunction=CreateIssueFunction, clientKey=4ed1c061-2b40-3006-988d-b7aae933133b)
configuration: {
"conditionalExecution": false,
"project": "PIMF",
"fieldActions": "{\"summary\":{\"action\":\"copy\"}}",
"copyCommentToNewIssue": false,
"selectedLinkType": "inward:10000",
"issuetype": "1",
"navigateToNewIssue": false,
"runAsType": "currentUser"
}
--
transition: {
"workflowId": 372349,
"from_status": "Verified",
"transitionId": 171,
"to_status": "PIM Approved",
"transitionName": "PIM",
"workflowName": "Bug Reporting 2.0"
}
--
request: {
"body": "{\"fields\":{\"project\":{\"key\":\"PIMF\"},\"issuetype\":{\"id\":\"1\"},\"summary\":\"Test issue clone #2\"}}",
"href": "https://flaconi.atlassian.net/rest/api/2/issue",
"impersonate": "557058:ad944671-a0b9-46e0-8f58-f91911fdee7f",
"method": "POST"
}
--
error: {
"code": 400,
"name": "Error",
"fields": "{\"authentication\":5,\"triggering\":6,\"queue\":1,\"delay\":2006,\"execution\":1854}",
"detail": {
"errorMessages": [
"We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."
]
},
"codeString": "400",
"message": "Unexpected response: 400"
}Can someone help me troubleshoot this issue?