Forums

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

Automation creates a new task but does not connect it to the trigger epic

Jana Jäger
Contributor
September 6, 2023

Hi,

 

I am using several Jira Automations for creating tasks after creating a new Epic.

All of a sudden it doesn't work anymore and I don't understand why because there were no changes.

Original & Wished Behaviour: Epic with the Project Type "Teststellung" was created manually by me. Automation creates a task linked to this Epic which is assigned to me.

New behaviour: Automation creates a task which is not linked to this Epic which is assigned to me.

 

To test it, I created a new Automation with only task (so I don't have to delete more than 10 independent tasks per try). Also I did this to test if the automation is broken by any chance.

 

This is my automation (see picture).

 

Any idea what could possibly be wrong here?

 


Thank you so much, 

Jana

 

2023-09-06 12_12_42-Automation - Jira.png

2 answers

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Champion
September 6, 2023

Hi @Jana Jäger 

 

The Epic do not have value for Epic Link. You can try the smartvalue

{{triggerIssue}} or 

{{triggerIssue.key}}

Jana Jäger
Contributor
September 6, 2023

Thank you so much @Florian Bonniec - it worked.

I am using {{triggerIssue}} now for the Epic Link.

Jana Jäger
Contributor
September 6, 2023

@Florian Bonniec  Do you maybe also have an idea how to add a subtask under the above created task? So far the other threads didn't help.

Florian Bonniec
Community Champion
September 7, 2023

Hi 

 

You could try something like this.

automationcloud.png

Using branch, Current Issue is now the latest created issue.

 

Regards

Jana Jäger
Contributor
September 11, 2023

Hi @Florian Bonniec thank you. If I do exactly as in the Screenshot, a new Epic gets created.

Therefore I changed the "Same issue type" to "Task". 

 

The Epic & Task are now connected but how do I connect the Subtask with the Task? Which field to set?

Epic Link {{triggerIssue}} is wrong here because then both task & subtask are directly under the Epic but the Subtask should be under the Task.

Parent issue must be "Current Issue" because the Automation fails when I use "Trigger issue". Therefore it must be a field to set I guess but I didn't find out which one. Any ideas?

 

2023-09-12 07_34_17-Automation - Jira.png

 

Jana Jäger
Contributor
September 11, 2023

 Now I tried this & no subtask at all gets created.

"Issue type is a sub-task but parent issue key or id not specified. (issuetype)2023-09-12 08_52_18-Automation - Jira.png

0 votes
Vishal
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.
September 6, 2023

Hi @Jana Jäger 

Instead of copy from trigger issue, use copy from epic like below & it should work. Its working for me.

Epic Link.jpg

Thanks!

Jana Jäger
Contributor
September 6, 2023

Hi @Vishal thank you, I tried that before but it doesn't work either.

Vishal
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.
September 7, 2023

Hi @Jana Jäger 

Its strange, its working perfectly fine on our side, but glad to know you found the solution.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events