Post Functions are extremely simple to write since they run in the context of the issue and don’t need to return any values.
Example 1 - Assign issue
assignee = "becky";
Example 2 - Create suntask
createIssue(project, key, "Sub-task", "This is the summary");