Hi,
I am looking to copy some fields from request to task, using a Custom Function.
I want to copy the requester, subject and description.
I have tried the following script, which doesnt work:
reqSub = taskObj.get("request").get("subject");
reqDesc = taskObj.get("request").get("description");
return {
"operation": [{
"INPUT_DATA": [{
"task":{
"title": reqSub,
"description": reqDesc
}
}],
"OPERATIONNAME": "UPDATE",
"FORMAT": "V3"
}],
"result": "success",
"message": "Updated Subject & Description"
};
what am i doing wrong?