...
- Click on Variables
- Click on the tab Groovy variable
Paste in the script below
Expand title Summary example Code Block language groovy return new String(issue.summary.getBytes("UTF-8"));
Expand title Custom field example Code Block language groovy import com.atlassian.jira.component.ComponentAccessor def customFieldManager = ComponentAccessor.getCustomFieldManager() def CF_ID = 10301 def CF = customFieldManager.getCustomFieldObject(CF_ID) def cfValueOfIssue = issue.getCustomFieldValue(CF) return new String(cfValueOfIssue.getBytes("UTF-8"));
- Change the custom field variable to the id of your system
- Name it to access it as a variable in the body or URL.
- Enable it for the action(s) that shall use the script
...