Forums

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

How to copy a field vale from sub-task to its epic

vincenzo_spatafora
Contributor
May 27, 2025

Dear ALL,

being struggling to code an Jira automation rule which triggers when a sub-task is created and as action it should copy a specific field value (of the sub-task) to the equivalent field of its Epic (so, being the grand-parent of the sub-task).

Could you please help me out with the syntax?

I have created a smart variable called EpicKey as {{issue.parent.epiclink}} but the automation returns nothing.

sub-task-Epic.PNG

I use Jira Data Center version 9.12.16.

Thanks in advance, Vincenzo.

1 answer

1 accepted

1 vote
Answer accepted
arielei
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.
May 27, 2025

Hey @vincenzo_spatafora 
use :  {{issue.fields.parent}} instead.

 

Best regards,

Ariel.

vincenzo_spatafora
Contributor
May 27, 2025

Thanks Ariel.

I have tried that out and that gives the sub-task parent but I'm after the Epic of the sub-task, so the grand-parent of the sub-task.

Do you know whch is the syntax in this case.

Thanks, Vincenzo.

arielei
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.
May 27, 2025

Hey @vincenzo_spatafora 

Try {{issue.fields.parent.parent}} this should work.

 

Ariel.

vincenzo_spatafora
Contributor
May 27, 2025

Hi Ariel,

still null but you gave me an idea.

It works with:

{{issue.parent.epic}}

Thanks for your time, Vincenzo.

arielei
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.
May 27, 2025

Hey @vincenzo_spatafora 

happy to help, please accept the answer.

Suggest an answer

Log in or Sign up to answer