Is there a way to automatically calculate current user's vacation time limit

In our company every user has 15 days off per year for their vacation. Is there a way to automatically see how many days left for the particular user? All people track their vacation time in one particular JIRA issue (via log work).

2 answers

You can use the REST API and some programming to grab the "timeSpentSeconds" information from the returned JSON:

baseURL/rest/api/2/issue/issuekey/worklog

Is there a way to store that limit inside user custom parameter?

And probably create a script that will update all users in our JIRA server automatically?

I am not aware of any JIRA functionality to add user parameters out of the box.

If you have your own JIRA server (not Cloud), you can write and install your own JIRA add-on to do pretty much whatever you want, but then you end up having to maintain that add-on for possibly every upgrade.

Not sure if any of the available add-ons would provide what you need.

1 vote

You could also give each user an issue with an original estimate of 15 days to book personal vacation against. Your remaining estimate is what is left for that user.

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
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

504 views 8 9
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