I've read the Tempo Servlet Manual, but don't see a means of getting a user's required hours within a date range. For example, I want to see that John Doe has 168 required hours for January 2014 because his Workload Scheme is 8 hours M-F and his Holiday Scheme gives him both January 1st and January 20th off.
Option 1
Is there a way to query this directly? Is there a pending feature request I can vote for?
Option 2
Is there a way to calculate it with data that is available?
Is there a way?
Community moderators have prevented the ability to post new answers.
Hi Anson,
Take a look at the (currently non-public, but fairly stable) UserSchedule-java-api:
com.tempoplugin.core.userschedule.api.UserScheduleManager, which among other has this method:
getRequiredSeconds(User user, Pair<LocalDate, LocalDate>duration), where duration is a pair of LocalDates (fromDate, endDate) where fromDate is inclusive, but endDate is exclusive.
This takes both the workload and holiday scheme into account when calculating the required seconds.
Hope this helps!
Is this only available via Java, which I presume requires I write a JIRA plugin to expose it to my separate web application? Or is this exposed to HTTP requests?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Currently we haven't made a REST endpoint out of this, I am afraid.
However, creating a simple plugin that exposes the api to HTTP requests should be trivial for experienced plugin-developers.
You might be interested to know that Tempo Planner has done something similar to your request (but that is not a public REST endpoint, and could therefore change at anytime without notice). If you want to check it out, you could get a Tempo Planner trial, and check out this URL:
http://localhost:2990/jira/rest/planner/1/team/1/members?from=2014-01-01&to=2014-02-02
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the tip on how I can get this today. I've voted the issue that appears to track a Tempo-implemented solution, TT-386
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the value of localhost:2990 for my tempo account? I am desperately looking for tempo api which gives the required hours of team members.
Please do needful.
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.