I want to create a Jira automation to get a customized field automatically filled after I include the Start date and Due date. The customized field is Duration and I want to know how many days it took to have the ticket completed.
This is the format of the Start and Due date "MMM DD, YYYY" or Jan 18, 2024 for example.
I tried to use this
{{#issue.duedate}}{{#issue['Start date[Date]']}}{{issue.duedate.diff(issue['Start date[Date]'], 'days')}}d{{/}}{{/}}
and other formulas and had no luck. I am always getting 2,020 as a result.
Looking at that expression, it is unclear to me in what format you want to set the value for the diff: a number, text, etc.
The diff value itself would be:
{{issue.Start date.diff(issue.duedate).days}}
Please adjust if the smart values in your Jira site are different.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.