Hey all, is there a way to use Jira automation to look at the Start date field of a new hire and then set the due date to the day prior? I cannot for the life of me find what value that would be
so something like
When issue is assigned > set due date field
{{employeeStartDate.toBusinessDayBackwards}}
Thanks in advance
Hi @Jonathan Carvalho -- Welcome to the Atlassian Community!
There appears to be some odd behavior for that function, perhaps related to time zones. Regardless...
Perhaps try this instead, assuming your field is a date or date / time field:
{{issue.employeeStartDate.minusBusinessDays(1)}}
Kind regards,
Bill
Check the doc https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
By utilizing smart values, you can perform calculations and set the employeeStartDate to your desired value.
The smart value would be something like: {{issue.DATE_Field.minusDays(1)}}
Hope this helps.
Best regards
Sam
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.