Hi Hock,
you can't close a task with the in product scripting language.
There is another thread here:
https://community.ibm.com/community/user/security/communities/community-home/digestviewer/viewthread?MessageKey=b0062ce8-e77d-43ac-be8f-669a09bd92a7&CommunityKey=d2f71e8c-108e-4652-b59c-29d61af7163e&tab=digestviewer#bmb0062ce8-e77d-43ac-be8f-669a09bd92a7
However from within the Workflow you can utilize our task functions:
https://exchange.xforce.ibmcloud.com/hub/extension/36ff15c1d9366036bd3c4ccbe93a0476
------------------------------
Elizabeth Hecht
------------------------------
Original Message:
Sent: Thu June 11, 2020 08:17 AM
From: Hock Leong Lim
Subject: Automate task completion
Hi,
I have a function that creates a ticket in a ticketing system. After the workflow runs the function and the ticket ID is generated successfully, i would like to complete a corresponding task. Am i able to achieve this inside post-process or do i have to do it inside the function?
Thanks.
------------------------------
Hock Leong Lim
------------------------------