Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Automation: Copy value of an Epic custom field to the Story, when adding the Story to the epic

Hello

I am struggling with following topic and I would appreciate some help.

I have an Epic-Story relation... and the same custom field on both issues.
What I try to solve is whenever a story gets linked to the Epic (Create or Edit), the story should receive the value from the Epic customized field and save it in the customized field of the story

My solution approach:

  • Trigger: When "Epic Link" is changed on the story
  • Branch Rule: "For Epic (parent)"
  • In the branch: "Transition the issue to" with destination purpose "copy from Epic" 
  • Additional fields... I have tried several scenarios but each of them quits with an error

 

Any ideas how to solve it? 

Thanks

Best regards

Marco

2020-12-18 15_11_22-Project automation - Jira.png

 

2 answers

1 accepted

0 votes
Answer accepted

Hey there Marco,

You shouldn't need to use the "Branch on Epic" or the "Additional fields" section Edit. You should be able to "Choose fields from Epic" and click on it to copy from the Epic issue

Note that this doesn't work on Next Gen projects at present https://codebarrel.atlassian.net/browse/AUT-2090

Automation_rules_-_Code_Barrel_JIRA.png

Hi @Mark Chaimungkalanont 

Thanks for your tip. I have removed the branch... but the field is a customized field and does not appear on the "Choose fields to set..." dropdown, because it's a databse field (I cannot change it).

So I must use the script in "Additional field". Any ideas how to access the Epic field to copy it down?

Thanks

Best Regards

does not appear on the "Choose fields to set..." dropdown,

Ah okay I guess the field type isn't supported in that case. Getting the format of "Additional field" type correct will depend on the type of that field. What's a "Database Field" is it provided by another add on?

Any ideas how to access the Epic field to copy it down?

You can use a smart value {{issue.epic.My field}} will resolve to the "My field" value of your epic. However, as per my comment above you'll need to figure out what the correct format that the field will accept it.

Thanks a lot @Mark Chaimungkalanont , I appreciate the help and it works now.

I have added the full automationm for anybody who is interessted it.

Best Regards

 

2021-01-04 15_15_04-Project automation - Jira.png

Like John Funk likes this
0 votes
John Funk Community Leader Dec 18, 2020

Hi Marco - Welcome to the Atlassian Community!

Can you share the error you are getting? Also a screenshot of the Audit Log when you run it?

Finally, is this a Next-gen project or Classic Software Project?

Hi John

Thanks for your reply and sorry for my late response.
The error messages tells more or less always the same, the destination status could not be resolved. 

2020-12-21 07_37_46-Project automation - Jira.pngYour question is about our Jira Installation? It's not a cloud version, it's an installation on our company server (I have only administration rights for this Jira project)

Thanks

Best Regards

Marco

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

105 views 2 1
Read article

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