I need to create automation in Jira for the following scenario.
Prerequisites:
Epic exists with label
Requirements:
Story/Bug is added to Epic (Epic Link Field on issue)
Label from Epic is added to Issue
So far I have tried using the following:
Field Value Changed (Epic Link not listed)
Field Value Changed - Parent Link
Issue Linked - Initiative/Epic
None of these trigger
Where can I try next?
Have you tried using the changelog entries to do this? For example the following will catch when the epic link as been set to a new value.
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
May I ask if this is possible for a specific Epic? And if it is how would one go about setting this up?
Thanks,
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tom.edwards
Is your use case the same as what Frank asked, and you want this only for one Epic?
Thanks, and kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted] ,
Thanks for the reply. I have tried the below and get emails back for all epics. But I was wanting this to be set up for just one specific epic.
Do I just specify the epic name in the second value? and change the condition to equals? I have tried this but not had any luck.
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.
Thanks for the information, Tom.
You want this rule to run only when the epic changes, right?
If so, let's assume you only care if changing TO that epic. You need two conditions in the rule:
Please note: This works for company-managed projects, as they use the Epic Link field to connect epics to child issues. If this rule is for a team-managed you need a slightly different rule using the parent field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
Thanks again for the information. Ive been having a play about with this and struggling to get this working. (I am in no doubt that this Is user error).
The two advanced compare conditions are where my lack of knowledge is hindering me and I'm not sure what the values need to be.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Tom.
When using advanced compare condition to check for a field change (not covered by the built-in trigger), try using the {{changelog}} smart value. For example to see if the Epic Link changed:
Your second test should be easier as you only need to check if {{issue.Epic Link}} equals the specific issue you wanted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bill,
I will try that tonight and let you know how I get on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I just want to break down what i have for each section as I still can't get this to work, unfortunately. The image below shows each section. I wasn't sure if the issue field was correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Epic Name" is currently only a field in an Epic. What type is the trigger issue that you are trying to use for that first comparison?
And what are you trying to test/decide in that 3rd comparison with "Engineering Results"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tom.edwards ,
I was able to replicate why you need here I wasn't a rule to be fired whenever a new User story is created with an EPIC link.
PFB screenshot below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Is it possible to compare Epic Link in jira data center/server?
I want to have an automation where it checks on creation that if the issue has a particular epic link then do some action?
Is it possible in data center via automation?
I have tried advanced compare using the customfield_xyz(Epic Link), it does not work.
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 @Harsh
Yes, I believe that is possible...although I am not using Jira Server / Data Center to confirm it.
I recommend creating a new question, and perhaps linking back to this thread for context. That will ensure more people see the question to offer suggestions; otherwise only those following this older thread will see it.
With your new question, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Thank you for the reply.
I have created a new post, link - Is is possible to compare EPIC LINK using advance ... (atlassian.com)
Thanks for the help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Any suggestion? thanks you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, in my case when an issue story/bug gets linked to an epic, I want to copy the value of a field "Source" from the newly linked epic to the issue.
But it can be that a new issue gets linked to an existing epic, or the issue is changed from one epic to another. So the advanced comparison cannot be just for the epic link been empty but even being changed.
Thnx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note Carin also posed this question as her own thread here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I couldnt find a trigger that would execute on epic link updated on the ticket..
Looking through some old articles, looks like 'Epic link' was in the Field value changed earlier but caused some problems and not there anymore.
The best i could think of is to execute the automation on any update. Something like:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fazila Ashraf @Bill Sheboy and @Tom.edwards
Hi - I have created an automation rule which is based off EPIC LINK field, for example
If Issue Type is Bug + Epic Link is Empty + Custom Field is Empty
Then Set Custom Field to a particular value.
Problem is EPIC LINK is not there any more - so alternatively is there a work around to check if a task or bug is part of an epic or not?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try using the parent smart value now, as this was made consistent across the issue hierarchy. (I believe the exception is still subtasks, which are part of their parent issue.)
Note that with the change to use parent, rules often require additional logic. For example, testing if something is a Story, Task, or Bug issue type before the testing parent will confirm the parent issue is likely to be an Epic.
Kind regards,
Bill
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.