Hi Community,
I have this piece of script which is suppose to create a ticket and set value to them.
def issueObject = issueFactory.getIssue()
def cfParticipant = "sd.request.participants.field.name"
issueObject.setProjectObject(project)
issueObject.setSummary(subject)
issueObject.setDescription(MailUtils.getBody(message))
issueObject.setIssueTypeId(project.issueTypes.find {it.name == "Service Request"}.id)
issueObject.setReporter(reportermail)
issueObject.setCustomFieldValue(cfParticipant, "addresses")
messageHandlerContext.createIssue(user, issueObject)
But the problem is that it is not setting value for the custom field : "sd.request.participants.field.name"
Can I get some advice please.
Best regards,
Jason Li