We have a JIRA automation, as an incoming webhook, that does the following:
When we run this, more often than not, we see the following error in the audit log:
Create version
Failed to create version .
A version with this name already exists in this project. (name)
Successfully created version .
21.7
Version already exists. Continuing the rule with this version.
21.7
Edit issue
Issues edited successfully
JDX-423, JDX-425, JDX-420, JDX-436, JDX-393, JDX-417
There is only one execution of the rule and we end up with two versions in JIRA... one that has no issues assigned and one that has all of them assigned.
Here's some screenshots:
Automation Rule:
Audit Log:
Any ideas what might be causing this?
"Gather issues from request" is an implicit "branch" (a loop). It executes the rest of the actions once per issue found in the received data.
That means if the webhook data contains 5 issues, automation will attempt creating the version 5 times. It'll only succeed only once (as it appears conflicting version names are not allowed) and it will assign all of the issues to that version.
Other than the error, it sounds like your automation is executing as expected.Iis that accurate?
Yes, that's right. Although we get 2 versions created regardless of how many issues are in the request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I presume if there is a single issue in the webhook, the create is only attempted once.
Two and beyond only print the success message once and the error message once? If that's the case then it must be true that we're deduping error/warning messages in the audit log to keep noise down. I've not noticed it in the past but that fact wouldn't shock me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@wwalser I expect an automation that needs to create a new version to be triggered multiple times with the same version name. Everything works but the automation keeps showing that there were errors and sends out an email for this. Is it possible somehow to first check if the version already exists and if so, don't try to create it anymore?
The other alternative is not sending emails if an error occurs but I that's not my preferred solution obviously.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Iain Short
Would you please post an image of your complete rule and one of the audit log for an execution where the symptom occurred? That may provide context for the community to offer ideas. Thanks!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for posting your rule, @Iain Short
I agree with @wwalser about the built-in branch processing for that webhook trigger. If the error is misleading/confusing your team, you could instead:
That should result in only one attempted call to create version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!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.