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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,802 views 11 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot