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:
The error I get in the audit logs is:
Error creating issue: data was not an object (parent)
Hello @Andy Ades
Sorry to hear you are facing this problem.
Indeed, Next-gen projects use a different mechanism that does not include the "Epic link" field to link Epics to issues, so the Automation rules are not able to recognize them yet.
Basically, this happens due to the fact that Next-gen projects use single entities for each project scope (Epics, status, Sprints, etc), so different fields and link types were created to link Next-gen Epics.
We have the following feature request to allow the Epic link to be recognized in Automation rules:
Unfortunately, I'm afraid we don't have a way to make it work with Next-gen projects at this moment, so I recommend you keep an eye on the feature request and move your issues to a Classic project in case you really need this functionality.
Let us know if you have any questions.
@Andy Ades If you're still looking for a solution, a user in a comment on another topic posted a solution that's pretty simple. That topic is called "Setting next-gen Epic parent in jira automation". Here's a link.
The useful comment is dated Mar02, 2021.
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events