Hi ,
I am trying to set up an automation rule that gets triggered whenever an issue is created. If the epic that the issue is created in has the label "test", I want the issue to also receive the label "test" (I do not want to copy the other labels)
While this didn't seem complicated to set up, it's unfortunately not working for me.
I checked the JQL query when setting up the rule and it found the epic with the label "test". However, the label did not get propagated when I created a task within the epic. In the rule audit log, I can see that the "issue did not match the condition ". It looks like
I already tried setting the JQL query to "parent", this did not change the performance
Any idea what I could do ? Any help is highly appreciated!
That Issue Created trigger can fire so quickly that the issue's data is not yet available to the rule. And so the actions / conditions / branches do not work as expected.
The work-around is to always adding the Re-fetch Issue action immediately after that trigger. It will slow the rule by about a second and reload the data before proceeding with the other steps.
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 @Evelyn Ramberger and welcome to the Atlassian Community!
This all looks good to me! Can you show us your Action to see if there could be something there?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to get it to work in my organization like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David, thank you for your response!
I set up the action like this
I also just tried setting this up the same way as you did but it still does not work
I keep seeing in the log that the issue did not match the condition; but the issue number is the number of the created issue and not the associated epic (Jira should be looking for the label in the epic not in the issue)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it seems that Jira is not looking up the issue in the related issue (although it is specified like this in the rule)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my case, in the audit log I do not see the issue key from the epic, I only see the issue that triggered it (created issue) and was subsequently updated:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Evelyn Ramberger what if you tried changing your jql to:
labels in (test)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, that is good to know! But I still have no idea why the rule is not working for me
I tested JQL search when setting up, Jira finds the correct epic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Evelyn Ramberger , could it be something with the rule actor? If you look under the Rule Details, you should see who that is. Can you confirm their access? (note: I always use "Automation for Jira" as my actor)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @David Blank , it is still not working. I tried changing the JQL query, the rule actor is set to Jira. This is giving me quite the headache!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Evelyn Ramberger have you checked that the scope matches the project your are triggering it from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Evelyn Ramberger this is part of the fun with automation tools, but the best part is the relief when it finally works! The more debugging, the more intense the relief feels :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the scope is equivalent to the project I am triggering from. I think I finally figured out (somehow ) what the issue was. When I created a task within an epic by clicking "create child issue", the task was created but Jira only sets the parent field miliseconds afterwards (I did not change the parent fieldmanually, this must have been triggered by Jira in the background).
But my rule got triggered upon issue creation with an empty parent field. I modified the rule now in the following way and it seems to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.