Hello I want to save a field with the amount of hours a ticket has been in a specific status
The status name is Pending
But I want to consider business hoours and working days. My project is TEAM MANAGED and Service Management project.
Setting up SLAs is not working entirely for me since I want a targetless SLA, I don{t care about this, I just want to save the time.
I have tried everything, logging creating values variables formulas...
So far the only thing that has worked is setting the value of the field using this this {{issue."Fieldname1".diff(issue."fieldname2").businessDays|0}}
but I cant get hours to work. I read and gpted and it state sthat my JIRA ADMIN needs to create a Calendar in order for businesshours to work?!?! I sthis correct?
This cannot be that complicated and I can't be the only person trying to do this...
Hi Augustin - Welcome to the Atlassian Community!
There are some free Atlassian Marketplace apps (and really good paid ones too!) that will calculate time in status far easier than what you are trying to do with automation and custom fields.
However, for your syntax above, try adding: .hours.abs after the 0 to convert the days to hours. Be sure the period is there after the 0.
Hello @Agustin Etman
Welcome to the Atlassian Community.
If you are open for third-party app, I could suggest to check solution provides by Argon app, which can be useful in your case. The timeInStatus function queries exactly how long an issue has spent in a specific status — no calendar setup, no SLA configuration needed. This is useful for tracking how long issues remain in particular workflow states.
Ex.
issue > timeInStatus("project = YOUR_PROJECT", "Pending", "4h")
If you need the value saved as a field (not just queried), Argon also offers the Time in Status custom field — you create it in Jira Settings → Issues → Custom Fields, select "Pending" as the tracked status, and it automatically displays and stays current on each issue without any manual formulas or variables.
Hope this answer meets your expectation.
Wish you nice day
Bartek
(Orbiscend OU Sales support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Agustin Etman -- Welcome to the Atlassian Community!
First thing, which version of Jira are you using: Cloud or Data Center? Your question is tagged with both versions.
Next, adding to the suggestions from @John Funk -- when possible I recommend using a marketplace app for this type of calculation / measurement. Perhaps check with your Jira Site Admin to learn if you already have one to help.
My reasons are:
Kind regards,
Bill
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.