Here is the scenario I want to implement:
I have a script in the Jira server that I need to execute during a transition. I used the Script Post-Function by ScriptRunner and I can confirm that the script is triggered. However, some commands in the script needs the details of the issue that underwent the transition as their input parameters.
I've been searching for similar questions for a while. Most of what I found were using groovy scripts to GET via REST API but the requests still need a JQL requiring issue details that I need in the first place.
Is there a way for the Script Post-Function to send or write the details of the issue that triggered it to the script? Or write the issue JSON to a file so I can just grep the details I need and put it in the script?
Thank you.