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?