Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-328

Automation Error: The label 'JIRA AUTOMATION' can't contain spaces. (customfield_xxxx))

XMLWordPrintable

    • Severity 3 - Minor

      Problem Statement:

      Automation for JIRA throws errors when using variables to capture Label values, performing actions on the values fetched(Eg: Converting to Uppercase), and then adding it back to a Label field.

      How to Reproduce:

      AUTOMATION RULE:

      Trigger: Issue Created
      Then: Create Variable = Upper
      Upper = issue.fields.customfield_xxxx.toUpperCase()
      And: Edit Issue Fields: customfield_xxxx = Upper
      

      ERROR:

      Edit issue
      Error editing issues
      Proj-xxxx (The label 'JIRA AUTOMATION' can't contain spaces. (customfield_xxxx))
      

      CAUSE:

      • When adding/setting the labels field on an issue through automation, it currently assumes that a smart value will resolve to a single value.
      • If you are trying to add multiple labels through automation by assigning values to a label field through a variable, It will resolve the multiple labels into a single value. It is considering the "space" in between the labels and making it a single value and you will end up with the error "The label X can't contain spaces" in the automation audit log.

      WORKAROUND:

      Currently there is no known workaround for this behavior. A workaround will be added here when available.
       

              Unassigned Unassigned
              1846b5d55690 Vaibhav Revankar
              Votes:
              19 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated: