Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,727
Community Members
 
Community Events
184
Community Groups

Automate setting of Due Date based on assigned Fixed Version release date

Edited

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 -

 

Error editing issues
SP-2499 (The duedate must be of the format "yyyy-MM-dd" (duedate))
So it seems the date coming from the fix version is in a different format to that  which is held in Due date. 
Can anyone suggest a way to fix this and make the automation rule work please?
Automation on setting due date based on fix version.pngerror when running automation.png

3 answers

1 accepted

4 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 06, 2022

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?

Automation on setting due date updated.png

This is the new rule

the audit  now shows as its been successful

success audit.png

but the ticket has no due date :-( 

https://share.getcloudapp.com/9ZumZGrg

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 06, 2022

Hi @Sarah Jackson 

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

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 06, 2022

Was just going to write that up and @Bill Sheboy beat me to it. Thanks, Bill!

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.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 09, 2022

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.

Thank you - you are correct I had omitted the " " and only put the brackets - thank you so much for your help - it working now :-) 

Like # people like this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2022

Fantastic! Thanks @Bill Sheboy for jumping in also!

Like # people like this

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! 

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events