Hi,
Our automation rule creates a few issues on a scheduled date. We want to set a fixed due date like November 30th, but the year should be based on the current year when the ticket is created. For example, if issues are created this year, the due date should be November 30, 2024. If issues are created next year, the due date should be set to November 30, 2025.
You may do that in one step using the withAttribute() functions for date / time:
{{now.withMonthOfYear(11).withDayOfMonth(30)}}
Kind regards,
Bill
Hi @Bill Sheboy
Thank you very much! It worked perfectly. This is exactly what I'm looking for.
Thank you,
Samuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may be able to create three variables:
1. Variable 1: "November 30, "
2. Variable 2: {{now.format("yyyy")}} <--- returns the year only
3. Variable 3: {{Variable 1}}{{Variable 2}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Richard,
Thanks for your response. It is not working as expected. We are trying to achieve this for the due date system field. We have more than 10 tickets that will be created. How will this be set for all the issues?
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 date format that your system field for due date uses?
It may be dd/MMM/yy in which case you will need the following Automation Rules logic:
This should set the due date to Nov 30, for the current year when any issue is created. If you need this to only happen to a subset of issues, add an if statement after the Trigger.
Let me know if this works for you.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.