Hi,
I want to make a simple if (issueInput.fields.customfield_123.value == 'IT')
being my custom a single select list.
How can I get the value of the customfield on the Postfunction Script Runner
Answering my own question and hoping it helps to someone else:
{code}
def cf = 'customfield_10093'
def dept_v = issue.fields[cf]['value'] as String
if (dept_v == 'IT'){
*SOME CODE HERE*
}
{code}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.