Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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?

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?

Found it... Big thanks mate!

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you