The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Anyone figure out how to do the date diff between two date fields?

Rosa Santos
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!
December 15, 2023

Anyone have success using the "diff" option? I am trying to calculate the difference between two dates. I used "minus" as well just to see if it gives me anything. I do not get any errors, says my custom action was successful but my field does not populate. I have tried as a text and as a number field. 

Appreciate any feedback! 

 

Ex. Issue.Created.diff{{Issue.Start date}}

Ex. Issue.Start date.diff{{Issue.Due date}}

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Trudy P Claspill
Community Champion
December 15, 2023

Hello @Rosa Santos 

Welcome to the Atlassian community.

I have used the diff function many times in Automation rules. Is that where you are trying to use it? If so, have you reviewed the documentation on the function use?

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-difference---

If you are using the function somewhere besides in Automation rules, can you provide more context about where you are trying to use the function?

Can you give us a screen image showing your actual use of the function?

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events