How to copy the value of Account from an Epic to a task of that epic?

Peter Ebraert November 15, 2018

Hello,

 

We are running the cloud version of Jira, and have the Tempo plugin and the Automation for Jira plugin.

Does anyone know how I can copy the value of the Account field (a custom field introduced by the Tempo plugin), from an Epic to all underlying tasks upon a change on the epic?

 

I did not find that field in the drop down proposed by Automation for Jira and suppose I need to do the copy by means of Jsson.

 

I made an automation rule and tried the following JSSON code, but got an error when the rule got fired.

{
"update": {
"Account": [
{
"set": {
"value": "{{triggerIssue.fields.Account.value}}"
}
}
]
}
}

2 answers

1 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 16, 2018

Hello Peter,

As mentioned in this answer, It looks like the correct construct is to make the id a string:

{
    "fields": {
        "Account": "234"
    }
}

 Can you give it a go and let me know if it works?

Peter Ebraert November 16, 2018

This works. But now I need to be able to fetch a long based on the epic's account.
Any idea how to integrate that in my above JSSON?

Peter Ebraert November 16, 2018

Found it... Big thanks mate!

{
"fields": {
"Account": "{{triggerIssue.fields.Account.id}}"
}
}

0 votes
Gabriella Szeltner December 13, 2021

Hi @Peter Ebraert @Petter Gonçalves  

Now I am trying to create an automation rule, so all the underlying tasks are taking the account name from the related epic.

 

I tried as follows: 
When: Value changes for account
For Linked issues
Then: Edit Issue Fields Account - Account: Copy Account from Epic Issue

 

However if I set an Account in an Epic no changes appear in the task accounts. 

 

Can you please help me, what rule should I set so our tasks have an account?

 

Thank you and best regards,

Gabriella 

Suggest an answer

Log in or Sign up to answer