Hi all,
I am trying to determine duration of a given ticket in a specific status. To achieve that, an automation is set up to retrieve two dates: 'now' and 'statuscategorychangedate'.
For some reason, calling 'diff' for these two dates simply yields nothing. But it seems to work with 'updated', although that's not something what I'm looking for.
I checked values and 'statuscategorydate' does seem to have a same data format as 'now'.
I would be grateful if someone could share some insights on this, thanks in advance!
Hi @Bryan Kim
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
What version of Jira are you using: Cloud, Server, or Data Center?
And for Jira Cloud, the field statuscategorychangedate is returned as text to rules and only returns the change for the status category values (i.e., To Do, In Progress, and Done). It does not record the value for all status value changes.
Kind regards,
Bill
Hi @Bryan Kim
Welcome to the community
Looks like you have the similar issue as discussed in this question.
It might look like this {{issue.statuscategorychangedate.toDate().diff(now).days}}
Give it a try and let me know how it went.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @pinky_reddy,
I tried the following, and it seems to work. :) I think the value itself is not correct at the moment, but it is a starting point at least.
{{statuscategorychangedate.toDate().diff(now).days}}
Thank you!
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.