Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

List to text box (null value?

 
1
0
-1

Hello,


I have custom field "Topic" that is type of Single Choice on Jira Server side, and would like to sync it to custom field "Topic" that is type text on Jira Cloud side.  

I have find this https://support.idalko.com/servicedesk/customer/kb/view/2883643 but when I Apply it on receiving end, i get an Null error because sometimes that field can be null. Can you please provide me with a code snipet on the incoming side that would make this possible, I have tried several things but i always get an error.


Thanks

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Filip,

      In order to prevent null values from generating an error, you might want to escape using "?".

      Example Incoming Script:

      issue.customFields."TEXT".value = replica.customFields."Sports List"?.value?.value
      
      

      Let me know if this works for you,

      Kind regards,

      Ariel

        CommentAdd your comment...