I looked through this KB (https://scriptrunner.adaptavist.com/5.6.8/jira/script-fields/issue-picker.html) but could not find the answer. I was wondering if there's a way to run checks against ScriptRunner's Issue Picker field to see if the issue is in a certain status.
For example, I have an Issue Picker filled called "Related Issue" and only want a transition to show up / be transitionable IF that issue has been transitioned to the "Done" status.
This is very much similar to Linked/Related Issues Status Condition provided by JMWE, but using ScriptRunner's field.
Any thoughts would be appreciated. Thank you!