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:
Failed to create version .
A version with this name already exists in this project. (name)
Successfully created version .
Version already exists. Continuing the rule with this version.
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:
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?
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.
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.
We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events