Questions for Confluence license has expired.

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

setting a ZD check box field

 
1
0
-1

Hi,

i have a check box field in ZD "Jira Ticket".

For any incoming, i need to have the "Jira Ticket" to be checked.

what should i add in the script?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      issue.customFields."checkbox field name"?.value = true

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

        Hi ben friedman


        What exactly do you mean with 
         i need to have the "Jira Ticket" to be checked.


        1. ben friedman

          Hi Francis Martens (Exalate)

          i have a custom, check box, field on ZD, named "Jira Ticket".

          its used in the filter to make sure that only tickets marked with "Jira Ticket" are synced to Jira.

          in ZD, i need that field to be always checked. if i dont include anything related in the incoming then the field loses its original 'checked' status.

          i need something in the incoming in the ZD side, to make sure that field is always checked.

          something like

          issue.customFields."Jira Ticket".option = checked (question)

          i dont know whats the syntax to use. 

        2. Fran Sánchez

          Hi!

          Finally, is it possible to know if a checkbox is checked or unchecked in Zendesk?

        3. Dmitrij POPOV

          Hello Fran Sánchez ,

          Yes, it is possible if you you add "Tag" value (equivalent to "Label" in Jira) in ZenDesk and use it to synchronise with Jira (bi-directional).

          With best regards,
          Dmitrij

        4. Fran Sánchez

          thank you very much for the answer Dmitrij POPOV , but I don't think I made myself clear. I need to be able to check the checkbox in a specific case by synchronization, how can I set that field as checked? 

          I have a custom field with name "lms_viable", how can I set it as checked? 

          if(condition == true) {
          	issue.customFields."lms_viable".value = true
          } 

          this does not work

        CommentAdd your comment...