Hello everyone!
I am currently working on a Post Function after the transition of a Service Desk ticket.
When the transition happens, i have a script creating a new Issue in another project. It is the same issue type. The issue is created and the custom fields filled in the service desk are copied in the new issue.
However, the summary and description fields do not work.
The problem is issue.summary is null and issue.description is null.
post("/rest/api/2/issue")
.header("Content-Type", "application/json")
.body(
[
fields: [
summary : issue.summary,
description: issue.description
]
])
.asString()
I have removed the other fields since they were working, to lighten the code.
Is there a reason why they are empty when I see them in the Service Desk?