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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,413
Community Members
 
Community Events
184
Community Groups

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
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 24, 2020

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
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 24, 2020

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.

https://community.atlassian.com/t5/Team-managed-projects-questions/Setting-next-gen-Epic-parent-in-jira-automation/qaq-p/1263233#U1731732

The useful comment is dated Mar02, 2021.

Is there any new view on this? 
"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." is not really what I'm looking for.

The solution mentioned by Charles is dealing with Epic - task. I'm looking for "initiative" - Epic.  THere fore I need to fill the Parent link field (customfield from Advance Roadmaps) with the value of the key of the trigger issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events