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

Accepted Answer
0 votes

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,142 views 2 7
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