Hello,
I'm trying making automation (by Jira Automation App) that will set a value on number field based on:
Creation Date [minus] Closing Date
Yet I don't really know how should I make it.
So far my idea was to make a smart value as shown in attached file, but ofc didn't work :(
What shall I do to make it work?
{{issue.created
Hi @Sagi Gueta
You have to use diff function for that.
{{issue.closed.diff(issue.created).days}}
You can change the unit as you want, please check the documentation.
Documentation :
https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html
Regards
Thanks for the tip, though I guess I did something wrong..
By the method you suggested to use, it should fill the field with number right? Unfortunately it didn't work when I did it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think what you want is
{{issue.resolved.diff(issue.created).days}}
closed will only work if you created the field. resolved is a system field that store the resolution date.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.