Hi everyone,
I'm trying to setup a script in Automation that I want to be triggered when a version is set to "Archived".
I've used the trigger "Version updated" and tried to add a condition where I test if {{version.archived}} is set to true,
BUT it seems like the test is done on the "old" value of the field and not the new one :-/ So my rule is actually applied on modifications done on archived versions, and not when a version become archived.
Does anyone have a way to work around this situation ?
Hi @Guillaume BERTRAND -- Welcome to the Atlassian Community!
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
Using the Version Updated trigger, I would expect the {{version.archived}} value to contain the current value, not the one from before the update. And I do not believe there is a changelog available for versions to detect archiving specifically. You could check if the system audit log contains entries for version archiving in Data Center.
Here is a suggestion to add those other rule triggers for versions: https://jira.atlassian.com/browse/JIRAAUTOSERVER-236
The only workaround I can think of would use project, entity properties and multiple rules:
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.