Has anyone successfully created Automation within a Jira Project to create a fix Version with the appropriate fixVersion name?
What I would like to do is, when a version is released, the next version is automatically created.
For Example: Release 3.2.1 -> Jira Automation automatically creates 3.2.2
What I am finding is that it cannot do the math correctly in incrementing the value.
I have tried {{#=}}{{version.name}} + 1{{/}} and {{#=}}{{version.name}} + 0.0.1{{/}} and several other variations and I keep getting this error: "Error rendering smart-values when executing this rule:null: 3.2.1 + 0.0.1"
Any help would be greatly appreciated!
I believe the format of the version number you are using is text, and not a number, due to the multiple decimal points/periods.
Have you tried to split the value apart, increment the last value, and then concatenate back together for the new value?
Best regards,
Bill
Hi Bill,
Thank you for your response! That makes sense that it would be a text vs a number. I thought I might have to figure out something fancy with splitting, incrementing, and concatenating but I haven't gotten far enough along to figure out how to do that.
If you have any examples so share I'd really appreciate it!
Thanks again,
Danielle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Danielle,
I made a quick attempt to capture a released version, split it, increment, and reassemble... but I ran into a couple of hurdles:
I posted another question about finding more documentation on automation webhookData, so let's see what others provide. The original source from the company who built the automation, Code Barrel, was sunset when Atlassian acquired them in October, so no help there.
In the meantime, if you figure this out, please post your solution. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I appreciate you giving this a shot Bill! I will attempt to play around with it some more.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just in time... I figured it out: create a rule that triggers on version released, action is to create a new version, with this value:
{{version.name.substringBeforeLast(".")}}.{{#=}}{{version.name.substringAfterLast(".")}}+1{{/}}
This works by the following:
Some things I learned along the way
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.
Hey Bill,
Just gave it a try and it worked like a dream! Thank you so much!
Do you happen to know if there is a way to have that release automatically go to the bottom of the version list (becoming the earliestUnreleasedVersion)? That would just be a bonus - what you provided is so helpful!
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Danielle,
I am glad that helped. Please consider marking this one as a solution so others can find it later.
Regarding the version ordering, it seems people have been asking for this feature in the suggestions. Please take a look at the items in this backlog search to see if any of the ideas would help as some of them include work-arounds.
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.
Hi @Bill Sheboy
Can we set up start date for fix versions in Jira cloud by using Automations??
Thanks in Advance.
Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and I believe that you would need to do so using a web request action to the REST API edit those fields.
It is not yet possible to set the Start Date directly during the Create Version action. Here is the suggestion to add that feature: https://codebarrel.atlassian.net/browse/AUT-2027
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.
First off, I wanted to say this is incredibly helpful. Thank you for marking this as a solution.
I have a similar situation as @Danielle Bonneau
Our version naming is a little different. We use don't us a 1.1.0 type of naming. We just use 1, 2, 3...100, etc.
I wanted to know how I can use @Bill Sheboy solution but with numbers without decimals?
For reference, this is Bill's solution.
{{version.name.substringBeforeLast(".")}}.{{#=}}
{{version.name.substringAfterLast(".")}}+1{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This technique is to use the text smart value and math smart value functions to split/parse the just released version to build the new one. Note for complicated names you may need to use a regular expression with match() and/or replace() functions.
Please take a look at the format of your current version naming to see what is consistent versus variable text, and you should be able to determine what to replace the "." with to make it work.
If you get stuck, please post your version naming format and what you have tried so far and the community can provide 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.
Please share your configuration iam also looking into the version increment.
Now i have jira version "release v3.1.0 " is there, once i released this version automatically creating next version like "release v3.2.0"
please share your configuration.
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.