Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-4193

setFormValue does not work on the Labels custom field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Done
    • 5.6.15, 6.0.2-p5
    • 6.19.0
    • Behaviours
    • SR4J Sprint 90, SR4J Sprint 91
    • 0.7

    Description

      System Labels field works:

      import static com.atlassian.jira.issue.IssueFieldConstants.*
      
      def labels = getFieldById(LABELS)
      labels.setFormValue(["my label", "another label"])
      

      Labels Custom Field does not work

      def label2 = getFieldByName("Labels Field")
      
      log.warn "label2: $label2"
      label2.setFormValue("test")
      label2.setFieldOptions(["test"])
      

      Attachments

        Activity

          People

            msiewruk Mariusz Siewruk [X] (Inactive)
            jloong John Chin Loong [X] (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: