I am looking for the correct Smart Value with Automated Tickets to create a date which is the first Thursday of the following month.
E.g Jira Automation creates the ticket on the last day of the current month & the start or due date of the ticket should read a date corresponding to the first Thursday of the following month
Can someone please help?
Cheers
Alan
Hey @Alan Dunbar
try:
{{now.plusMonths(1).firstOfTheMonth(4)}}
It is actually quite simple. You have a date (now), you add a month to it (.plusMonth(1)) and then you jump to the first Thursday (.firstOfTheMonth(4))
look here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
Best Salzi
Fantastic Salzi.. just what I am looking for and it has allowed the "penny to drop" in terms of understanding some of the other Smart Value syntaxes... Much appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alan Dunbar
Welcome to the Atlassian Community!
you can refer to the below, more info can be found here https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
also, your automation rule needs to be Scheduled based and their you can control the config of when it will run on Monthly basis
Sets the date to the next matching day. If you're already on that day, then it will return the next week. You can use the following values: MON, TUE, WED, THU, FRI, SAT, SUN.
Example of {{[date].withNextDayOfWeek(["day"])}}
1
{{now.withNextDayOfWeek("TUE")}} will return the next Tuesday.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much for the contribution Anturan, I will add this to my snippits of useful codes.. Slight newbie around the Smart Value use here.
Much Appreciated
Alan
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.