I created an automation rule where when a new Bug issue type is created, a clone of that issue gets created if there isn't one already linked during the creation step. (see attached screenshot.) However, when I create new issues - even if I fill in the linked issue field with a clone issue, I end up creating a 2nd clone (i.e. the newly created issue has 2 issues linked - one I linked manually and one newly created by the automation rule.) Is the linked issue field not saved until after the issue is created? How can I work around this behavior? Seems like a bug - am I doing something wrong?
Hi @Meigy Tsai - There is some credence to linking happening after issue creation and the possibility that the rule is triggering too quickly... For example, when you import issues, Jira is methodical about creation first then linking which makes sense because it needs the record created in order establish a link.
So, with this said, there is an action called re-fetch issue data. You may want to throw that in just before the "Linked Issues Not Present" condition. Maybe by the time it gets there, it identifies that the link exists.
Thank you for the suggestion!
I added the additional re-fetch data step after "type equals". It still doesn't work. :(
Is there a "after issue is created step" or something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share a screenshot of your "linked issues not present" condition setup? The only other thing I can think of is that the condition is looking for BOTH "clones" and "is cloned by" links to be present which for your case, would always be true resulting in creating the cloned bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had added that because it wasn't working. I've moved it now so the steps looks like this... still does not work. The clone always get created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to make sure I'm checking all the boxes, can you please confirm whether the link you're creating is to an issue in the same project or another project? If it's another project, you'll need to add that project to the rule scope.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OMG! That was it! Thank you! :) I was cloning into another project and missed this part.
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.