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 :
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 !
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.
project={{issue.project.key}}
AND fixVersion IN ( {{#issue.fixVersions}}"{{name}}"{{^last}}, {{/}}{{/}} )
AND statusCategory!="Done"
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.