I'm using a next-gen project with Automation for Jira (cloud). I have a rule setup for whenever an epic is created to trigger creation of new issues (not sub-tasks) with certain fields set. I'm trying to set the trigger issue as the Epic of the newly created issues, but since "parent" isn't available until an Epic is linked to an issue, I'm unable to figure out how to properly do this. Is this possible in next-gen?
My advanced code block is:
{
"fields": {
"parent": "{{triggerIssue.key}}"
}
}The error I get in the audit logs is:
Error creating issue: data was not an object (parent)