I've created an automation rule - that when I add a FixVersion to a ticket then the due date should be updated to the same date as the release date on the fix version.
I've tested it and the automation fails saying that -
Hi Sarah,
Maybe add a format for the fix version date so that it is inline with the Due Date format:
{{issue.fixversion.releaseDate.format("dd/MM/yyyy")}}
Or whatever the Due Date format is.
Hi - thank you for that I have just updated the rule and it now works and says the automation has happened but when I check the ticket that has been updated - the due date is still null and not set to the date of the release?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the new rule
the audit now shows as its been successful
but the ticket has no due date :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does your fixVersion have a value in releaseDate at the time the rule runs?
Does your fixVersion field have one or multiple values? fixVersion is a list field and if you have multiple you may need to select the one you want for the source of releaseDate, such as: {{issue.fixVersions.releaseDate.max}}
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.
Was just going to write that up and @Bill Sheboy beat me to it. Thanks, Bill!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All of my FixVersions have a release date and I generally only add one fixversion to each ticket, rarely multiple.
I have added .max to the rule and tested again. Once again the rule says the automation was successful but on the ticket the Due Date is still saying None.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sarah, would you please post an image of your edit action details? The image above seems to indicate you put in the format() information without the quotation marks that John suggested, and that could be the cause.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you - you are correct I had omitted the " " and only put the brackets - thank you so much for your help - it working now :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fantastic! Thanks @Bill Sheboy for jumping in also!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm struggling with similar issue. Tried the solution here but Due date field wont update.
{{#=}}{{issue.customfield_10015.plusDays(14).format("yyyy-MM-dd")}}{{/}}
with quotes: get the error
without quotes audit completes but field does not update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
changed the smart value to: {{issue.customfield_10015.plusDays(14).format("yyyy-MM-dd")}}
this did the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found that `.jiraDate` can be used instead of `.format ("yyyy-MM-dd")` to get a datetime converted to a correctly-formatted date used by Jira fields like "due date".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there! This has been helpful in my case, the smart values that I have entered and is working is {{issue.fixVersions.releaseDate.format ("yyyy-MM-dd")}}, I hope It helps. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi - thank you for that I have just updated the rule and it now works and says the automation has happened but when I check the ticket that has been updated - the due date is still null and not set to the date of the release?
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.