Hi
I've Googled all over and the closest I've gotten is
package UpdateIssue
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.MutableIssue
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager();
issue.setDescription(customFieldManager.getCustomFieldObjectByName("Affected Users").getValue(issue).toString() + "/" + customFieldManager.getCustomFieldObjectByName("Implementation Details").getValue(issue).toString())
However this replaces the Description text instead of adding to it.
I'm trying to add some custom field contents to the Description on a post function, so that when the Jira Service Desk approver email is sent to an approver, it includes all of the details in the Change Request.
I essentially want:
-----------------
Original Text in the description
Name of Custom field 1:
Contents of custom field 1
Name of custom field 2:
Contents of custom field 2
------------------
and so on.