Hello,
I'm trying to match the end date of an issue to its release version, when it's added to the release.
So, an issue without an end date is added to the release, I want to automatically copy the release end date to the issue end date. Here is what I built so far:
Hi @Gina -- Welcome to the Atlassian Community!
You describe this: "...an issue without an end date is added to the release". What do you want to do if the issue already has a Due Date (i.e., end date) value?
Next, the Fix Versions field in issues is a list of values. The smart value expression you show will:
That will not necessarily be the version which triggered the rule. Is that what you want to do? If not, please see the suggestion from @Lisa Forstberg to assign the value from the trigger version.
Finally, what do you want to do if the trigger version does not have a release date set yet?
Kind regards,
Bill
The project has versions set already. When we create a new ticket and add it to a version, I'd like the new ticket to copy the version due date as the ticket due date. In the screenshot below, you'll see SAND-12 is not assigned to a version.
When I assign SAND-12 to version Gabbro, I want the ticket to populate the same end date as version Gabbro.
But the automation instructions from Lisa don't get that result. The SAND-12 Due Date field remains blank.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the additional information. The rule Lisa showed will update the issues assigned to the version when the version itself is updated, not the issues.
And so there are multiple scenarios to handle, and you may decide which scenarios (and rules) are needed. Here are the ones I can think of to start (ignoring edge cases of empty fields, deleted versions, etc.):
GIVEN a version exists with an assigned release date
WHEN an issue is created and assigned to the version at the same time
THEN set the issue's due date to the version's release date
GIVEN a version exists with an assigned release date
AND an issue exists without an assigned version
WHEN the issue is updated and assigned to the version
THEN set the issue's due date to the version's release date
GIVEN a version exists
WHEN the version is updated with a new, non-empty release date
THEN for all issues assigned to the version, set the issue's due date to the version's updated release date
You show screen images for the second one, so let's do that one:
This assumes one (or more) values in the Fix Versions field, with the latest one by release date is what you want.
That rule could be copied, changing the trigger for issue created, like this:
The final rule could be what Lisa showed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gina
Welcome to the community!
I just tested this and smart value {{version.releaseDate}} seems to do the trick
all the best
Lisa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.