Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Autoincrement version name of automatically created release version

Caroline Björn January 16, 2023

I really cannot get this to work. We're at release 585 this week and I would like to automatically create a new version once that is released. 

I autorelease a version every wednesday at 09, and I would like to have this as the trigger to create a release which increments by one, i.e. 586. 

I can get the release to trigger automatically upon release but the naming is not happening. Can someone please advice what I need to write under Version Name to get this to work? 

This is what I want to create: 

 

----

Rule 1: Release current release version every wednesday at 9, for instance MyVersion 584

---

Rule 2: 

- Trigger: When Version Released

- Action: Create New Release and autoincrement +1 onto the last released version for version name:

- MyVersion 585

Next time rule is run it should create -MyVersion 586, week after that My Version 587 etc etc

 

---

I tried using the

{{version.name.substringBeforeLast(".")}}.{{#=}} {{version.name.substringAfterLast(".")}}+1{{/}} that was suggested in a different thread but that would only release the same version with a .1 regardless of what changes I made.

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2023

Hi @Caroline Björn 

Would you please post images of your complete rule and the audit log showing the details of the rule execution?  Those may provide context for what is happening.

And...would you please provide examples of a series of version names you want.  For example:

  • my Version 585.3
  • my Version 585.4
  • ...
  • my Version 586.0
  • etc.

Those will help the community advise if the syntax you are using will produce the desired increment.

Thanks!

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events