Hi,
I am trying to manipulate MailingListCompiler.java to export some issue's properties as X-Headers in the e-mail's subject to facilitate filtering in the mailing clients.
I have a custom field of multi-group picker type that I would like to export it. Therefore, I am using the following lines of code:
CustomFieldManager customFieldManager = ComponentManager.getInstance().getCustomFieldManager();
CustomField customField = customFieldManager.getCustomFieldObjectByName("Group Name");
Object customFieldValue = issue.getCustomFieldValue( customField );
And here starts my problem. I am trying to copy the "customFieldValue" object's value to a StringBuffer and immediately after include it in the e-mail's subject field but I get a value like [com.atlassian.crowd.embedded.impl.ImmutableGroup@xxxxx].
I believe my problem is that I cannot handle properly the customFieldValue as Group object.
Any hints?
y.