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?
Found my problem.
The information is in issue.fields.summary and issue.fields.description
If the issue is already created and you change the issue object after that, you have to update the issue manually. mylonestar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe I was unclear.
The Service Desk issue already exists, and when I transition it, I have a script to create a new issue in another project. The 'issue' instance refers to the Service Desk issue, and the summary and description fields are null.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.