Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

    Expand
    titleSummary example


    Code Block
    languagegroovy
    return new String(issue.summary.getBytes("UTF-8"));



    Expand
    titleCustom field example


    Code Block
    languagegroovy
    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

...