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

STC error shows for valid arguments with Multi Select fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • L3
    • Resolution: Fixed
    • None
    • 8.2.1
    • None
    • 2.5

    Description

      When trying to add multiple values to a Multi Select List field with *listOfValues, an STC error shows in the console.

      E.g:

      def issue = Issues.getByKey('ESD-2')
      def values = ['A','B']
      
      issue.update {     
          setCustomFieldValue('Select List (multiple choices)', *values) 
      } 
      [Static type checking] - Cannot find matching method script16801748524201376559806#setCustomFieldValue(com.atlassian.jira.issue.fields.CustomField, java.util.List <ApplicationUsers>). Please check if the declared type is correct and if the method exists.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ovfsiebenburgen Olly von Fay-Siebenburgen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: