I'm trying to calculate the difference between two custom date fields, and then populate a third custom field with the variance in days.
I'm using Jira Software Cloud and have Automation for Jira plug in.
Can anyone help?
Automation for Jira does provide some built-in date manipulation functions including calculating the difference between two dates:
For example:
Cheers,
Brydie [Automation for Jira]
This is what I've been trying to do, however, the field I want to update doesn't appear in the drop down....
What field type should the field I want to set be? Its currently a number field
Do you know what the advanced formula would be that I can include in "More Options"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The equivalent json for the "more options" would be:
{
"fields": {
"Days since last updated": "{{issue.updated.diff(issue.created).days}}"
}
}
I don't see any reason why a number field shouldn't work. If you are still having trouble feel free to raise a support request and we can look into your configuration further.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira Misc Custom Fields is a Free plugin wich adds some neat custom field types, among them are: calculated date/time, calculated number and calculated text.
Not sure if the plugin is availiable for the cloud version or if it is just for the server version but I think it is worth checking.
Hope it helps.
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.