Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Epic not assigning in Automation from Trigger Issue

Mary Prather October 11, 2022

Hi there, 

I have run into an error code for assigning the trigger issue to a new task in automation, the automation runs fine but I get the error below regarding the epic. I am wondering if anyone has ran into this issue before and knows how to fix it. 

 

Thanks so much

1E22EF65-22BC-46B9-BA5D-5E2F1B219FF3.jpeg 2BDFFE7E-CAFA-4D35-9AA7-7977BC572766.jpeg

 

2 answers

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2022

Hi @Mary Prather 

Are you using a company-managed or team-managed project?

Team-managed projects do not use the "Epic Name" field; they use "parent" to set the epic link for child issues.

And company-managed projects have "Epic Link" and "Epic Name", but both of those fields are being sunset.  You can use "parent" instead for that project type also.

Kind regards,
Bill

Mary Prather October 11, 2022

Hi Bill, 

Thank you again for your help! It is a Team Managed project but when looking I do not have the option to select Parent, only Epic name and Epic Link 

EF0AA5B0-7B15-451F-8432-C17E67B0E07B_1_201_a.jpeg

Trudy Claspill
Community Champion
October 11, 2022

In Automation Rules for Team Managed projects, Parent is not yet a field that is available to select from the "Choose fields to set" list.

You have to use the More Options

In the "More options" => "Additional fields", paste the following within the created ticket

{
"fields": {
"parent": {"key": "{{triggerIssue.key}}"}
}
}
Like • 2 people like this
Mary Prather October 12, 2022

Hi there Trudy!

Thanks for your reply.  I made this change and it didn't work unfortunately. The error is shown below. 

4EDE9E58-5501-40FD-9A27-4A3A6D7FACD6.jpeg 94689122-3CEC-4E7F-8AA1-9BCBC13FBBDB.jpeg

Trudy Claspill
Community Champion
October 12, 2022

Can you show us the entire rule, please?

And what is the type of the Issue that is triggering the Rule?

Mary Prather October 12, 2022

Hi there, 

Here is the entire rule. The issue type is a task 15E567A3-AF95-46F1-B044-F7B9EB1CFF30.jpeg

Trudy Claspill
Community Champion
October 12, 2022

Using the "triggerIssue" smart value in creation of the Task (within the rule) to try to set the parent Epic for the new Task works only if it was an Epic issue that triggered the rule. You can only make an Epic the parent of a standard issue type such as a Task. You can't make a standard issue type a parent of another standard issue type. 

That is what the message is indicating. If a Task triggered the rule, then a Task is at the wrong level to be made the parent of the new Task you are trying to create.

Is the Task that triggers the rule a child of an Epic? Are you actually wanting to make the newly created Task a child of the same Epic as the Task that triggered the rule?

Mary Prather October 12, 2022

Thank you for your help!

Yes the task that triggers the rule is a child of the epic I want copied, I want the newly created task to fall under the same parent epic. For context, each "epic" is a different client. When we close this specific task out we want it to re-assign and re-assign to the appropriate "epic" since it is a working task that needs to be completed frequently. Here is what it looks like on the list view. The issue we are trying to reassign is "Test Execution"E0E098B6-F5B2-462E-8CE2-AC17BE91E972_4_5005_c.jpeg

Trudy Claspill
Community Champion
October 12, 2022 edited

This is the code that you need in More Options then

{
"fields": {
"parent": {"key": "{{triggerIssue.parent}}"}
}
}

 

Like • Bill Sheboy likes this
Mary Prather October 12, 2022

IT WORKED!! Thank you so much for your help!

Like • Bill Sheboy likes this
0 votes
Jack Brickey
Community Champion
October 11, 2022

Hi @Mary Prather ,

In your screenshot I see copy labels for trigger issue twice. I would first remove one of those and observe the results. If it continues to fail, just for test purposes remove the second labels from the fields to be set. Let me know your results.

Mary Prather October 11, 2022

Hi Jack!

Thank you for your help! I removed one of the label rules and still got an error, and then the second and still got the error as well. Please see the error log below :)683372D8-75B3-42BF-89D9-C8692F2C24F1.jpeg

Jack Brickey
Community Champion
October 11, 2022

Thanks Mary, this is what I expected but wanted to prove. There are actually two errors in your initial Image. I am thinking along the same lines as what Bill posted above. Could it be that you are in a team managed project? If so use"Parent" is Bill indicated.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events