I need to get the workflow transition ID that the currently logged-in user is trying to trigger from JIRA in a script using scriptrunner.
I tried using transientVars["actionId"] but it's not a valid option when running the script from a file, unfortunately.
I can't really find a lot on this on how to achieve this.
What I need is just the ID, not the name or linked steps or potential next transitions, but the one that the user is triggering from JIRA.
Thanks!