Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

JSON escapes special chart into this format; \u00E5 \u00E4 \u00F6

To escape them you can use a Groovu variable to UTF-8 encode

  1. Click on Variables
  2. Click on the tab Groovy variable
  3. Paste in the script below

    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"));
  4. Change the custom field variable to the id of your system
  5. Name it to access it as a variable in the body or URL.
  6. Enable it for the action(s) that shall use the script


Example usage

IQL with custom field that contains the name which could have special chars in it.



  • No labels