Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,028
Community Members
 
Community Events
168
Community Groups

Jira Automation: How to calculate difference of changelog dates?

Edited

Hi all,

I have tried every possible solution trying to get the difference of {{changelog.duedate.to}} - {{changelog.duedate.from}} but I keep getting a null result.

The function I have been using and variations of it is {{changelog.duedate.to.diff(changelog.duedate.from).days}} but the value is always empty.

Any help would be greatly appreciated. Thank you.

1 answer

1 accepted

1 vote
Answer accepted

Hi @Vidhya Kumar,

I'm not sure why it is not working with changelog, but it works when using fieldChange:

{{fieldChange.to.toDate.diff(fieldChange.from.toDate).days}}

I triggered my automation rule when value changes for Due date.

Hope this helps!

- Manon

Hi @Manon Soubies-Camy

Thank you so much, you're a lifesaver! Yeah you'd imagine the same outcome would apply cause it works fine with {{issue}} or {{triggerIssue}} dates but not {{changelog}}.

This will do the trick for now, thank you once again.

- VK

Like Manon Soubies-Camy likes this

Suggest an answer

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

Atlassian Community Events