Hi,
I'm trying to add a workflow validator for a sub-task that must look at a field from the parent and only allow the transition if a certain value is selected from a custom single select list field.
In order to accomplish this I was trying to use ScriptRunner's Simple scripted validator by trying to get the value from the sub-task parent (which is a Task issue type) but I can't seem to make it work.
It would be easy for example, to know the status of the parent ticket by doing this:
issue.parentObject.statusObject.name == "Open"
I couldn't, however, find find a way to get the value of a custom field from the parent in order to validate that.
Please help.
Thank you!