Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set due date for onboarding

Jonathan Carvalho
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2024 edited

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 

2 answers

0 votes
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.
July 31, 2024

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

0 votes
Samuel Gatica _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 31, 2024

Hi @Jonathan Carvalho 

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

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events