Jamie,
Here it is
import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.issue.customfields.view.CustomFieldParams import com.atlassian.jira.issue.fields.CustomField ComponentManager componentManager = ComponentManager.getInstance() CustomFieldManager customFieldManager = componentManager.getCustomFieldManager() MutableIssue issue = componentManager.getIssueManager().getIssueObject('JIRA-4243')
CustomField cf = customFieldManager.getCustomFieldObjectByName("Project-Component")
CustomFieldParams cfVal = issue.getCustomFieldValue(cf) as CustomFieldParams
"Project-Component" is the cascade select field.
Can you put the line breaks in, then use the "code" formatting so this displays properly. Alternatively, post to gist.github.com.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.