HI,
field "DATE1" already has some date.
Need to update DATE1 as (DATE1 + Variable) where variable is (todays date - DATE2)
DATE2 is another date Field
Need to write this in Automation
Hello @Sanjivani Wayal
You can find information about functions you can use with date and date/time fields in Automation rules on the following page:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time
Take a look at the information there and then let us know if you need additional help.
HI , we can use
{{[date1].diff([date2]).[unit]}} but it is not giving the date it has below units millis
seconds
minutes
hours
days
weeks
months
years
businessDays
But i need difference in Dates like if now() - 11/7/2023 it should give DATE 7/7/2023.
The diff function is going to give you the amount of of the difference between two dates.
If you want to use that to create another date, you apply that difference to another date.
Your statement was:
The diff function will give you the value for Variable. You have to use the plus[Unit]([number]) function to then apply that variable to DATE1.
Hi @Trudy P Claspill
Could you please help me how can i write this in Automation declaring variable is new for me
It looks like you're new here. Sign in or register to get started.