Is there any way to automatically set the Epic Name to the Summary or vice versa? We want these values to be the same. Because we are integrating with Roadmunk and their cards display Summary whereas the Jira Boards we have generally use the Epic Name field. When these two fields differ, it causes confusion and we see no value in them being different anyway.
Navigate to Project settings > Automation
(A global rule will use your monthly limit, a project based one will not. By default a global rule is created.)
Create a new rule
At the 'New trigger' menu pick 'Field value changed' (located under 'Issue triggers' subheading).
Set the values as follows:
Field value changed: (select both) ‘Epic Name’ and ‘Summary’
Change type: (select) ‘Any changes to the field value’
For: (select both) ‘Create issue’ and 'Edit issue'
At the 'Add component' screen pick 'New condition'.
Select ‘If / else block’.
Select ‘Add conditions…’.
Select ‘Advanced compare conditions’.
Set the values as follows:
First value: {{fieldChange.toString}}
Condition: (select) ‘does not equal’
Second Value: {{issue.epic name}}
At the next 'Add component' screen pick 'New action'.
At the 'New action' screen pick 'Edit issue' (located under 'Issue actions' subheading)
In the 'Choose fields to set...' dropdown pick 'Epic Name'
Click on the '...' (ellipsis next to the new text field) and click on 'Copy from'. The text field will turn into a button. Click the button.
In the 'Field to copy value from' dropdown menu pick 'Summary'.
Save.
On the left hand side right at the bottom click ‘Add component.’ (This link will be above ‘Add Else’.)
Select ‘If / else block’.
Select ‘Add conditions…’.
Select ‘Advanced compare conditions’.
Set the values as follows:
First value: {{fieldChange.toString}}
Condition: (select) ‘does not equal’
Second Value: {{issue.summary}}
At the next 'Add component' screen pick 'New action'.
At the 'New action' screen pick 'Edit issue' (located under 'Issue actions' subheading)
In the 'Choose fields to set...' dropdown pick ‘Summary’
Click on the '...' (ellipsis next to the new text field) and click on 'Copy from'. The text field will turn into a button. Click the button.
In the 'Field to copy value from' dropdown menu pick 'Epic Name'.
Save.
Name your automation and click ‘Turn it on’.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agreed! Big help. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked like a charm!!! Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hej, how do you avoid that the field "Epic Name" is required while creating and Automation rules triggerd by "Issue created" starts after this conditions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Followed these steps today (with some minor tweaks - I'm assuming related to Cloud UI changes) and it worked GREAT! Thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for sharing Abdul. I've done something similar but with extra steps with an IF that keeps the shorter of the two fields
If: matches
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stephan Hannachdid you find a solution to not having to populate both the Epic Name and Summary fields on an issue creation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a theoretical way to do that.
It is possible to unlock locked fields described here:
https://confluence.atlassian.com/jirakb/unlock-a-locked-jira-software-custom-field-779158866.html
This could give the availability to change the field configurations required toggle.
I do not recommend that and I did that never, as Atlassian support discontinue after that operation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've updated the steps to 1) fix the issue where if the 'Epic Name' was changed then the 'Summary' did not update. Now you will only need one automation rule. If you've used my previous instructions and want to update then delete those rules first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Abdul thanks for the great answer. I think there is a small typo in the first if condition. I need to {{issue.epic name}} (without the dot) to make it work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This did not work for me in Jira Service Management. The create screen would not auto update, I still had to type something into the epic name and save and it didn't update on save. Once I edit the ticket if I changed one or the other then it worked but it did not work on creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Abdul - I think it is worth editing your original answer with what @Johan Sund Laursen discovered as needed to do the same for the rule to work :) It will help other people in the future :)
" I need to {{issue.epic name}} (without the dot) to make it work."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
almost worked - the one error I think is still in the instructions above is:
"15. On the left hand side right at the bottom click ‘Add component.’ (This link will be above ‘Add Else’.)"
The only way I could select a "New Condition" rather than a "New Action" was if I did the following instead:
- On the left hand side at the very bottom click 'Add Component.' (This link will be under 'Add Else'.)"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amy!
There's unfortunately no native feature for that.
That being said, you could use third party apps to have a post-function in your Epics workflow after creation (before reaching first status) which would be copying summary to Epic Name. If you already have any script app such as PowerScript or ScripRunner you can even script it :)
Hope this helps!
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I’m happy to see you’re having this consistency between Name and Summary as it’s getting very confusing when they differ!
Have a great day, Amy!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd also like to keep the Epic name and Summary as the same, or more importantly, only prompt the user for one. Unfortunately Epic Name is a required field and locked on the instance we have, so users are forced to enter data to both.
That said, epic name isn't offered when creating an epic through Boards > Backlog > Epics > Create Epic, so I assume something has been added to our Jira (v7.11) that changes the behaviour of the field without changing the default create epic screen.
I think my only option is to stop Epic Name from being a required field, but as it's locked I can't do that through the UI. https://confluence.atlassian.com/jirakb/how-to-unlock-a-locked-jira-software-field-779158866.html
I'd love to know how the field became required and locked too, but I'm new here so I doubt I'll find that answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created another issue type (Epic Creator) that has the same fields as an Epic. Then, I have an automation task that, on creation of an Epic Creator task, copies Summary to Epic Name, and then changes the issue type to Epic. It seems to be working so far.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If anyone is still looking for an answer to this question in (or after) April 2020, then two things changed here:
1. Next-gen epics have only summary, the epic name is gone.
2. You can use automation to set epic name to summary or vice versa without a need to install any addon, it is available in Jira-Cloud natively.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi -
I'm assuming that you're referring to Classic projects in #2. Can you provide more information on the native automation, please?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Coco S Chaussée ,
You can read more about it here: https://www.atlassian.com/software/jira/features/automation and take a look at this video: https://www.youtube.com/watch?v=iMxv8u30DH8
or read in more details here: https://support.atlassian.com/jira-software-cloud/docs/automate-your-jira-cloud-processes-and-workflows/
Or you can navigate to System > Automation rules and try it by yourself.
Regards
Arek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi can I have further details? I tried to create an automation rule, to get the Epic Name from Summary at creation stage, but since Epic Name is a required field, it doesn't allow me to create the ticket without putting a value there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm with @Patricia Mayer - I can't pass the mandatory setting - post function or any automation runs AFTER the issue is created and it can't be created in the first place without the Epic Name.
Can anyone assist on this please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see @Arkadiusz Głowacki you mentioned epic name is gone in cloud version - my company is using datacenter -- we are trying to keep epic name and summary in Sync.. If Epic name is gone then what is sued in all displays as that short name was used on boards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ayelet Ben-Tzur @Patricia Mayer - were you able to solve this? I would like to setup an automation rule so that the epic name equals the summary at both creation and for any subsequent updates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I haven't. If you manage to, PLEASE tell us how :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ayelet Ben-Tzur I was not able to get it to work on epic creation but I was able to write an automation so that if the epic summary changes, so does the epic name.
When: Issue Updated
If: Summary does not equal the Epic Name from the Current Issue
Then: Edit Issue fields (Epic name = Copy from Summary from Current issue)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, this part is no problem, the problem is with the creation.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.