Forums

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

Automating releasing a version once all items in the release are "Done"

kaavya.ramaswamy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2025

Hi All,

       I need to create some automation that will mark a version as "Released" automatically once all the tickets linked to that version are marked as "Done". 

I am stuck on two counts : 

  1) Relating the automation to each fix version - I want this to run on the Work Items related to each fix version,  not on each work item transitioned to "done" . It appears the rule i was creating assumed the latter : Screenshot 2025-05-15 at 11.00.51 AM.png

2) ensuring that *all* work items related to a fix version are marked as done before the automation runs 

 

This is primarily for announcements and audit. the actual deployment automation is in a different project due to various reasons. 

Any pointer would be appreciated!Thanks ! 

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.
May 15, 2025

Hi @kaavya.ramaswamy -- Welcome to the Atlassian Community!

You have the correct rule trigger as you likely want this to happen as soon as the last work item transitions to done:

GIVEN a version has one or more assigned work items
AND all but one work item are Done
WHEN the last work item transitions to Done
THEN release the version

 

The key is: do your work items ever have more than one version assigned?  Let's assume they do not.

And your rule could use the Lookup Issues action to identify the other work items assigned to the version, check if any are not Done, and only release when needed.

  • trigger: Work Item Transitioned to done
  • condition: Fix Version does not equal empty
  • action: Lookup Issues, with JQL of
project={{issue.project.key}}
AND fixVersion IN ( {{#issue.fixVersions}}"{{name}}"{{^last}}, {{/}}{{/}} )
AND statusCategory!="Done"
  • smart values condition
    • first value: {{lookupIssues.size}}
    • condition: equals
    • second value: 0
  • action: release version, providing the version name as:
    • {{issue.fixVersions.first.name}}

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events