Forums

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

How to exclude the week-ends in time difference

vincenzo_spatafora
Contributor
July 4, 2025

Dear Team,

is there a way to exclude the week-ends in time difference?

I use the following smart value: 

{{now.diff(issue.duedate).abs}}

from which I need to exclude the week-ends.

Can you please tell me as how to achieve that?

Thanks in advance,

Vincenzo.

1 answer

1 accepted

4 votes
Answer accepted
Matthias Gaiser _K15t_
Community Champion
July 4, 2025

Hey @vincenzo_spatafora

I had a look at the documentation of the diff function for Jira smart values. It lists "businessDays" as a possible unit.

So, I'd recommend to try this smart value:

{{now.diff(issue.duedate).businessDays.abs}}

Cheers,
Matthias.

vincenzo_spatafora
Contributor
July 7, 2025

Great @Matthias Gaiser _K15t_

thank you very much: it works.

Kind Regards,

Vincenzo.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events