Need to Closed all the tasks if opportunity got closed via groovy script
I have to write to groovy script to close all the tasks if opportunity got closed.
Can anyone provide me sample of groovy code to achieve this requirement.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):