1
0
-1

some one know how to set a value of a Select Field Lists (single choise) field .


for example i need to set a default value when sync a ticket  y try the next example but i have the error that property value is not accept.


If you have some suggestions tell me


if (firstSync ) {
  issue.customFields."Issue Escalated From".value = "Exalate"
}



    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      this is the solution :


       if (firstSync ){ issue.customFields."10012".value = "Exalate" }
      1. Juan Grases

        Good news you found a solution. Normally you should also be able to use the custom field name. Are you sure you use the exact name, case sensitive? Also the problem could be that you have many CFs with the same name, in that case using the ID is the way to go.

      2. Andrey Miranda

        thanks i think is that i use the same custom field with different context and with the script search with the name is difficult to  find 

      CommentAdd your comment...