I have a an automation that runs every night at 11:30PM EST which queries a project and finds issue(s) wthat meet the critera. What I want it to do is create a single version then foreach issue found edit the version field to match the created version and then release the version
What is happening is it seems to have run twice?
Here is the query that is scoped to that project
updatedDate < endOfDay() AND updatedDate > startOfDay() AND Sprint is EMPTY and fixVersion is EMPTY and deploymentEnvironmentName ~ “prod“ and status = resolved
Any help would be appreciated
Hi Kevin,
It looks like it is trying to create a version for every issue returned in your query.
I would remove the query from the Scheduled trigger part but leave the create version where it is.
Then change your Branch for JQL and put the query there.
that makes so much sense!
For documentation sake I removed the JQL from here and moved to a new branch
new layout:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thinking more about this - I will need a null check so it does not create a version if nothing was - any thoughts on best way to do this? So I don't want empty versions to be created and released
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let me think about that a little more. Maybe using lookupIssues with a count and the count > 0 but I would have to work out the code. That might take a day or two or maybe @Bill Sheboy could help in the short term.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kevin McGillicuddy and @John Funk
Yes, I agree with John. Please try this:
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.
Thanks Bill appreciate that will give this a try!
Also do you think then I would be able to change my branch rule (in the second picture above) from JQL, as John suggested, to now be All Created issues? I may play with that in sandbox - basically trying to avoid having the JQL listed twice but its not the end of the world
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You aren't actually creating issues in this rule, so I don't think the All Created issues would apply. Plus you are running it at 11:30 pm so it shouldn't hurt to hit JQL twice.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline 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.