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
Hey @Bill Sheboy , thanks for your answer ! As you can see, I've been doing exactly what you mentioned, and I encourage you to try it for yourself
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using Jira Cloud, and when I tested {{version.archived}} has the correct value.
Perhaps with Data Center's automation the trigger is firing so quickly the data is not updated in time. You may want to ask your Jira Site Admin to contact Atlassian Support to check if this is a known symptom.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.