2
1
0

I want to check if a label is not present in Zendesk. If it exist in the ticket a sync shoould not be done.


How to do it ?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      You can retrieve the label from the issue.labels which return a List of labels. You can operate on the list using groovy collection methods:

      if(issue.labels.collect{it.label}.contains("No sync")){
        return;
      }
      1. Francis Martens (Exalate)

        Mikael Bohlin

        Add this to the outgoing sync on the top of the script.
        Whenever the replica is empty, no sync will be done

      CommentAdd your comment...