JIRA project automation USe new version

승엽B January 17, 2024

I have a question about using the project automation feature. If anyone knows, please help.

Thank you.

1. when creating a new version, I want to automatically record the start date as that date.
2. when releasing a version, I want to automatically record today's date as the release date.
3. when releasing a version, I want to use Smart Value to create a new name for the next version. (ex. I don't know how to +1 to 1.0.1 if the version name is 1.0.0)

2 answers

2 accepted

0 votes
Answer accepted
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 17, 2024

Hi @승엽B -- Welcome to the Atlassian Community!

When creating your rule, I recommend both checking the documentation for actions you have not used before, and to look at all of the options shown in the rule editor.

  1. For creating a new version, the dates can be set under the additional options for the action
  2. There is no rule action to edit / update a version.  Instead a rule could call the REST API functions using the Send Web Request action to edit the version dates.
  3. When releasing a version and using the name to create the next version, the text and math functions may be used to do so.  They have also been several other community questions for how to do this, and so searching will show those examples.

Please note: for your scenario's #1 and #3, you may want to do these in one single rule, as you describe releasing a version should then create the next version.  The alternative is to use the option "Allow Rule Trigger" for the #1 rule so the #3 rule can trigger it.

Kind regards,
Bill

0 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 17, 2024

Hi @승엽B and welcome to the community!

1. when creating a new version, I want to automatically record the start date as that date

The Start Date of the version?  This is not possible.  Your action options for the version are Create, Release, or Unrelease.

2. when releasing a version, I want to automatically record today's date as the release date.

Again, for the version?  When you release a version, it will prompt you on whether you want to use the original release date or today's date.

is your intent to update a custom "Release Date" field on all of the issues within that version? 

3. when releasing a version, I want to use Smart Value to create a new name for the next version. (ex. I don't know how to +1 to 1.0.1 if the version name is 1.0.0)

Is your intent that automation will create a new version upon release of a version?  If so, you could do something like this for the new name:

{{#}}{{version.name.split(".").last.asNumber}}+1{{/}}
승엽B January 18, 2024

Thx too much~ 

Suggest an answer

Log in or Sign up to answer