1
0
-1

I have a project on  Jira cloud and another project on Jira server.


I need to sync a custom field { Select List (cascading) } I try with some different scripts and I don't have a good result.


If  Do you have some suggestion I appreciate it?


Thanks

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      Good afternoon,

      I tried with your recommendation but I don't have good results.

      Also, I was checking  this solution (https://docs.idalko.com/exalate/display/ED/Sync+between+Cascading+Select+and+Text+custom+fields) and  i had the next result Phone extension is the custom field in the project that i need to sync  



      if you have any suggestion I appreciate it 


      Thanks 

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Thanks, I going  to check the information

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Hi Andrey,


          Take a look at the following documentation:

          https://docs.idalko.com/exalate/display/ED/Syncing+cascading+select+custom+fields

          https://docs.idalko.com/exalate/display/ED/getCascadingSelect


          def parent = nodeHelper.getOption(issue, "Destination Region/Country", "Europe")
          issue.customFields."Destination Region/Country".value = nodeHelper.getCascadingSelect(
                 parent,
                 parent.childOptions.find{it.value == "Belgium"}
          )
          issue.customFields."Destination Region/Country".value = nodeHelper.getCascadingSelect(
                 nodeHelper.getOption(issue, "Destination Region/Country", "Europe"),
                 nodeHelper.getOption(issue, "Destination Region/Country", "Belgium")
           )


          These approaches should both work correctly.


          Let me know how it goes!


          Thanks,


          André

          1. Andrey Miranda

            I was checking  the  first link  again, and I found what is the problem, this solution is perfect


            thanks for your suggestions   

          CommentAdd your comment...