Forums

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

Calculate how much business time it happens between 2 dates (weeks, days, hours, minutes)

Nicolás Donnelly Kehoe
September 1, 2022

Hi,

I'd like to know if you can help me with this: I'm trying to calculate how much business time it happens between 2 dates (weeks, days, hours, minutes), for example:

  • Date A: 2022-08-18 10:00 AM
  • Date B: 2022-08-26 02:30 PM

* BusinessDays (business days are considered to be Monday to Friday, 9am to 6pm)

I need to calculate the business time between Date A and Date B: 1w 1d 4h 30m

 

Thanks in advance!!

2 answers

0 votes
Dominik Rekawek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2017

Unfortunately it is not an option for me, I need more generic way to solve it w/o plugin. I cannot use standard notifications as I need to send information about updates only in certain states.

0 votes
Anton Chemlev - Toolstrek -
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 Champions.
October 17, 2017

In order to run a scrip you need something that can run it. I use ScriptRunner. It is possible to handle Issue Updated/Issue commented events anfd check are there any changes to attachment and then do smth.

Something similar is here https://community.atlassian.com/t5/Answers-Developer-Questions/JIRA-file-attach-listener/qaq-p/496563

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events