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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.