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

0 votes
Accepted answer

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
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,305 views 5 11
Read article

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