Version auto release

Emerson March 24, 2023

I already have an automation that creates a new version when the previous one is released. And I wanted to increase the automation to generate the release notes automatically. Also, I would like the version to be released automatically when all items within it are in "Released" status.

2 answers

1 accepted

1 vote
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.
March 24, 2023

Hi @Emerson 

It seems you already have an automation rule.  For questions like this, please post images of your complete rule and the audit log details showing the rule execution.  Those will provide context for the community to offer suggestions.  Thanks!

What have you tried thus far to improve your rule to the new needs?  What is not working as you expect?

Kind regards,
Bill

Emerson March 24, 2023

Hi @Bill Sheboy 

There's my rule. Works really good, but still need some manual actions.

Captura de tela 2023-03-24 113606.png

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.
March 24, 2023

Thanks for that information. 

What do you mean by "manual actions"?

From what you have described, you will need at least two different rules:

  1. Triggered on issue transition to Released, check if all other issues in the release are complete, and then release the version.
  2. Triggered on version released, do what you are currently doing, and somehow create release notes.  You are unclear what that means.  Within a rule, you can use an email to do that, if you wish.

Please note: because the second rule can be triggered by the first one, you will need to enable the "Allow Rule Trigger" option in the details section of rule #2.

Emerson March 24, 2023

Manual actions:
1- The creation of version notes within the version itself is done manually;
2- The release of the version is also done manually.

The image below is of the Release Notes screen within the version. I want it to be automatically created and populated with the issue fields I choose.

Captura de tela 2023-03-24 122154.png

Emerson March 24, 2023

Tried a basic automation and returned this:

Captura de tela 2023-03-24 123227.png

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.
March 25, 2023

First thing, there is no built-in way to create release notes as you are doing.  I suggest investigating if there is a REST API call to do so from a rule.

Next for the error you show, your condition on Issues Fixed In Version only works for a version-related trigger.

Instead you would need to use a Related Issues condition, testing against the version which is in the trigger issue:

project = yourProjectName AND status != Released AND fixVersion = {{triggerIssue.fixVersion}}

Remember you are confirming all the issues in the release are done, and so your condition would be "None Match Specified JQL".

Emerson March 25, 2023

I tried a bunch of stuff to see what happens, but none of the worked.

Your JQL returned the same error as my last print.

It's really weird that it's that complicated... it's just a status check and update.

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.
March 25, 2023

My mistake as the smart value name is plural.   Please try this, ensuring that you use your project name in the JQL:

project = yourProjectName AND status != Released AND fixVersion = {{triggerIssue.fixVersions}}

If that does not work, please post images of your current rule and the audit log showing the details of the rule run.

Like Emerson likes this
Emerson March 25, 2023

Born and raised to bring joy and less manual work. Many many thanks!

Captura de tela 2023-03-25 232253.png

Like Bill Sheboy likes this
0 votes
Aftab_Akhtar January 16, 2024

Hi @Emerson  would you be able to provide a screenshot of your rule to create a new version when the previous one is released please?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events