Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I add the trigger issue as my parent for issues created from automation?

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)


1 answer

1 accepted

1 vote
Answer accepted

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:

Setting epic link / parent link in next gen projects is broken in cloud

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.

@Petter Gonçalves - appreciate the response. There are enough benefits for us to keep the project as next-gen for now. We'll manually update the parent link once the issues are created. We'll keep an eye on the feature request too. Thanks!

Like Petter Gonçalves likes this

You are welcome @Andy Ades

Have a nice weekend and let us know in case you have any other questions.

Like Andy Ades likes this

@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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

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! ...

107 views 1 11
Read article

Community Events

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

Events near you