We're looking for a way to automate the linking of issues via a workflow post-function. Specifically, we need to link the current issue to a ticket of a specific type where the value in a custom user picker field matches the value of the same custom user picker on the current issue. So the logic we're trying to express is something like:
project = "Example Project" and issuetype = "Example Issue Type" where "Custom User Picker" = (same as "custom user picker" of currentIssue)
I know that's not a real expression and it doesn't resemble groovy, but hopefully someone gets what I'm aiming at and can provide an idea or two. We'd _like_ to leverage the "Link issues to the current issue" post-function (JMWE) if possible because it'd be cleaner, but if we can't, we do have the Scriptrunner post-functions available to us.