Hello @Ramesh Lakshmanasamy
If you need to get values of all customfields of issue, it would be like this:
import com.atlassian.jira.component.ComponentAccessor;
def issueManager = ComponentAccessor.getIssueManager()
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def issue = issueManager.getIssueObject("issuekey")
def cFields = customFieldManager.getCustomFieldObjects(issue)
Map<String, Object> fieldvalues = new HashMap<String, Object>()
cFields.each {it -> fieldvalues.put(it.name, issue.getCustomFieldValue(it))}
log.error("FIELDS :"+ fieldvalues)
Hello,
It would be like this
import com.atlassian.jira.component.ComponentAccessor; def issueManager = ComponentAccessor.getIssueManager() def customFieldManager = ComponentAccessor.getCustomFieldManager() def cField = customFieldManager.getCustomFieldObject("customfield_10304")
def issue = issueManager.getIssueObject("issuekey") def cFieldValue = issue.getCustomFieldValue(cField)
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.