Query booked hours with Scriptrunner plugin?

Hello Jira community,

We jave Jira 6.x and severyl people are booking thir edffrots fpr different Issues, e.g. we have a Issue "Sickt time" or "vacation" where people book their sick times and vacation hours. I'd like to query this values (booked hours) along with other paramters. For example see all bookes houers for all employees on isue "vacation2 for Whole August. Something like that. As far as i know this can not be accomplished with the standard installation of Jira, so we installes Scriptrunner plugin to be able to query this information from Jira, but as i am completely new to Groovy and no Jira expert as well, i'd like to ask if someone of you could give me some idea in which direction i should go now.I am completely stuck and have no idea how to approach this taks, so any help is welcome.

Kind regards

Sepp K.

1 answer

1 accepted

Ok, i am one step closer.

issue = INTERNAL-13 AND issueFunction in aggregateExpression("Total Spent time in Sick Time:", "timeSpent.sum()")

gives me something like Total Spent time in Sick Time:: 1 year, 25 weeks, 3 days, 7 hours, 30 minutes

Is it possible to have this listed for every user in one query? like:

User1: sick time 1 day

User2: sick time 3 days etc.

??

Thanks in advance

Sepp K.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you