Hi everyone,
I’m trying to create a Jira Automation Rule that adjusts vacation days based on worklog updates, but I need a way to track the previously logged value to ensure correct vacation day calculations.
Requirements:
If a user logs 4+ hours on a "Vacation" task, decrease vacation days by 1.
If a user updates the worklog from 4+ hours to less than 4 hours, increase vacation days by 1 (undoing the previous decrease).
If the worklog remains under 4 hours and is updated multiple times (e.g., 3 → 2 → 1 hours), it should be ignored (no additional vacation days should be added back).
If a user logs 4+ hours and then updates it to 5, 6, 7, or more hours, it should NOT decrease vacation days again (only the first log of 4+ hours should trigger a decrease).
Question:
How can I reliably track the previous worklog time so that I can ensure the correct vacation day adjustments?
Required few clarifications to understand your use case better
NOTE: Work log time is rolled under Time Tracking (Time Spent/Time remaining). So instead of relying on individaul worklog entries, have you thought about checking the value of Time Tracking field (<=4 and >4 <=8)?
1.Yes every user has its on vacation task
2. if user takes 2 days of he should log etleast 4> hours on two days
so if you want 2 days you log 4+ hours for each day you want in separate logs
3.I have two custom fields Vacation days that will be manually updated for each employee based of their vacation days and i have vacation days remaining that should increase or decrease based of automation logic i put in my question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.