Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation: Math Expression, Round to the Nearest Multiple of 15

I have the following math expression


{{#=}}({{issue.timetracking.timeSpentSeconds}}/60){{/}} Minutes



The latest request from the business is that they would like these rounded up to the nearest 15 minutes...for billing purposes. 


I cannot figure out for the life of me how to do that.



Any ideas?

3 answers

1 accepted

1 vote
Answer accepted


So you could use: 



@Paul O that actually wasn't working when I had 13 min logged, and when I went up to 48 min, it would round down to 45 min.  However, I was able to finally get it to work with 



Like Paul O likes this

Interesting. I took a quick look to understand this a bit more. It seems that the field for time tracking is treated like an integer (rather than a jira custom field number type). When using the 'divide' operation in my example above, it will never return anything but a whole number. So using 'ceil' has no impact at all.  

As you've found, you need to perform a 'math expression' e.g CEILING.  It seems "numerical operations" (per ) only apply to custom fields of the number type

thanks for the explanation 

Reading below, I don't have a solution

Hi @Jeffrey Bistrong 

No, maybe, and yes...  ;^)

  • No: There does not appear to be a way to set the granularity of the built-in time tracking...yet.  You can alter the default units.
  • Maybe: There could be a marketplace addon which does this with other time-tracking features/tools
  • Yes: You could use an automation rule to perform the rounding/truncation and store the result in a custom field.  However you would need to manage and report on that field independently as the built-in time-tracking features could not use it.
  • Yes 2.0: You could write a complex automation rule which would detect logged time, and then use the REST API to make adjustments to account for your rounding.  This seems like a brittle solution and I would advise against it.  Better to buy a marketplace addon tool if you really need this long-term.

Have you investigated if your billing tools can do the rounding for you, outside of Jira?

Best regards,


Jeffrey, just to be clear: are you trying to permanently change the stored value of the time tracking or make a temporary adjustment only for the purpose of reporting?


I might want to change the value of the stored value (eventually), but for now I am just outputting to a different field for the finance team not to have to do their own rounding

Thanks for confirming that info. 

As you want to change the stored value I suspect your only options are to research other time-tracking tools from the marketplace with that capability, or to update with an adjustment value, either from the REST API or use an automation rule to log more time to round up.  (That second approach of adjustment will definitely inflate the time tracking.)

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

259 views 7 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you