I have an issue I'm trying to transition when a custom date, and custom hash field are updated, but only if another field is in the approved state. This last one is a button transition back to the current state (done by someone and would be a lot of work to change). So I'm trying to just leave it alone.
So, what I'm trying to do now is use a listener to only transition the issue to the next state in the workflow external review if both variables have been updated and are not set to empty. However, I can only get it to work for a single custom field update. Any ideas on how I could make this listener depend on both being changed?
I tried to detect a change in both fields in the same listener script and only transition if both are changed, but that doesn't seem to work (maybe it's not timed right).
Any idea on how to handle a two field update transition? I haven't run across any questions that could help me solve this. I'm using Jira 8 by the way, and scriptrunner.