1
0
-1

Hi, We have some issues implementing.

The most important thing right now is the next error:

Jira Cloud error
Internal comments cannot be processed. The reason is: Request Type custom field is required, but not set..

This is happening when sending from Zendesk to Jira. Hope you can help.

Cheers Maarten


This is our script:
//status in Zendesk naar Open bij wijziging status in Jira
def statusMapping = [

// Jira issue status <-> Zendesk ticket status
"Backlog" : "open",
"In Progress" : "open",
"Done" : "open",
"Afgerond" : "open"
]
def defaultStatus = "open"
def statusName = statusMapping[replica.status?.name] ?: defaultStatus
issue.status = nodeHelper.getStatus(statusName)

//attachments from Jira are intern comment in Zendesk
replica.addedAttachments = replica.addedAttachments.collect

{it.internal = true; it}

issue.attachments = attachmentHelper.mergeAttachments(issue, replica)

//maak alle comments intern in Zendesk
issue.comments = commentHelper.mergeComments(issue, replica,

{ comment -> comment.internal = true comment }

)


  1. Ariel Aguilar

    Hi Marten,

    Exalate sync rules are divided in Outgoing sync and Incoming sync rules. If you are having problems in Jira Cloud. It would be helpful if you can share the code used for Zendesk "Outgoing" script and Jira Cloud "Incoming" script. The code you have shared I believe is the ZenDesk "Incoming"? Once you share both needed codes we can definitely see why the error is generated. Then, in Jira Cloud do you have a Service Desk instance? 

    Kind regards,

    Ariel

CommentAdd your comment...

3 answers

  1.  
    1
    0
    -1

    This is going to be fixed with help of Michiel and George

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

      //status in Zendesk to Open with changing status in Jira


      def statusMapping = [

      // Jira issue status <-> Zendesk ticket status
      "Backlog" : "open",
      "In Progress" : "open",
      "Done" : "open",
      "Afgerond" : "open"
      ]
      def defaultStatus = "open"
      def statusName = statusMapping[replica.status?.name] ?: defaultStatus
      issue.status = nodeHelper.getStatus(statusName)


      //attachments from Jira are internal comment in Zendesk


      replica.addedAttachments = replica.addedAttachments.collect

      {it.internal = true; it}

      issue.attachments = attachmentHelper.mergeAttachments(issue, replica)


      //make all comments internal in Zendesk


      issue.comments = commentHelper.mergeComments(issue, replica,

      { comment -> comment.internal = true comment }

      )

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

        Hi Ariel,


        Im a bit confused about the different scripts. When i edit a script on one side it is synced to the other and both are the same right?

        We use the Service management in Jira.

        I have sent the support zip file in the support ticket earlier

        Cheers.

        Maarten

          CommentAdd your comment...