Hope someone here can help, I've been banging my head against my desk!
i'm using scriptrunner for jira cloud.
1) I have a script listener which fires when a new version is created.
2) My script successfully creates a new issue (story)
How do I create subtasks and link them to the newly created issue?
I thought about creating a new listener which fires after an issue is created and performs a text search for a value which is set when the new version is created, but that seems clunky.
Thanks.