Hello. I've been having trouble setting up post functions for a custom field "Time in Status". Basically we want to track the time spent in a status and accumulate it every time it switches. Scenario:
- A transition happens from "Ready for Test" to "In testing"
- During this transition, we want to track how long did the issue stay under the "In Testing" status
- If a transition happens from "In Testing" to anything else, the time tracking stops
- If at any point it transitions back to "In Testing" it starts tracking again.
Which post functions should I use to achieve this?