You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Trying to figure out why {{issue.customfield_11479.minusDay(2)}} is not returning any values.
As you can see in the first log {{issue.customfield_11479}} returns a value, but adding the minusDays(2) it returns nothing
Please try using minusDays() instead of minusDay(), as I believe all of the plus/minus ones use a plural name for the units of measure:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
Kind regards,
Bill
sorry got caught up in trying lots of the possibilities, but still nothing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the type of that custom field?
If it is not date type, you could add an asDate conversion before making the adjustment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it is a date type, but it is a system field, so not sure if that has anything to do with it
However after multiple rounds of testing I got the following syntax to work. Thank you for pointing me in the right direction
{{issue.customfield_11479.toDate("yyyy-MM-dd").minusDays(7).jiraDate}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, and I believe Target Start is one of those advanced roadmap fields which has some oddity with automation rules. Other built-in/system fields like that are indeed text and not date or date/time type, and so the conversion was needed. (Another example is the Status Category Changed Date, which is text for a date/time value.)
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.