It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Anton Skornyakov Dec 16, 2016

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

2 votes
Sten Sundelin Dec 16, 2016

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

Anton Skornyakov Dec 16, 2016

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?

Sten Sundelin Dec 16, 2016

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
Walter Buggenhout [ACA IT] Community Leader Dec 17, 2016

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

740 views 7 0
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you