Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart value for date diff

Mar Angelo L. Tareno
Contributor
October 7, 2024

is there smart value for date diff?

I need smart value from create date but only count the business day and now diff

 

is this the right smart value for?

 

{{issue.created.toBusinessDays(now).days}}

1 answer

1 accepted

4 votes
Answer accepted
John Funk
Community Champion
October 7, 2024

Hi Mar Angelo,

Try this: {{issue.created.diff(issue.now).businessDays}}

Mar Angelo L. Tareno
Contributor
October 7, 2024

Hi John, 

it doesn't work. Result is null value.

is there other possible way?

John Funk
Community Champion
October 7, 2024

Can you give more context where you are using it? Is it in an automation rule? If so, can you share the rule? 

Mar Angelo L. Tareno
Contributor
October 7, 2024

I need the smart value to edit my custom field number. to get the aging for the ticket from creation to done of flow. only businessdays no count on holidays and weekends

is for the aging of ticket. without using plugins

Duc Thang TRAN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2024

Hello @John Funk 

I don't usually use {{issue.now}} (which might work), but i using a lot   {{issue.created.diff(now).businessDays}} and it work for me .

 

Like Susan Waldrip likes this
John Funk
Community Champion
October 8, 2024

So, what is not working with the above smart value? Can you share your automation rule? 

Mar Angelo L. Tareno
Contributor
October 8, 2024

@Duc Thang TRAN  this worked. thanks

Like # people like this
John Funk
Community Champion
October 8, 2024

Yes, sorry - I did a copy/paste from another rule and forgot to take out the issue. part. Thanks @Duc Thang TRAN !

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events