# Request type errors custom field

**URL:** <https://community.exalate.com/t/request-type-errors-custom-field/4781>\
**Category:** General Questions\
**Tags:** migrated\_question, issuetype, request, issutype\
**Created:** [November 4, 2024, 7:23am UTC](https://community.exalate.com/t/request-type-errors-custom-field/4781 "2024-11-04T07:23:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:23am UTC](https://community.exalate.com/t/request-type-errors-custom-field/4781/1 "2024-11-04T07:23:31Z")

</div>

_Originally asked by Maarten Wildeman on 21 July 2021 [(original question)](https://oldcommunity.exalate.com/questions/30049855)_

* * *

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 }

)

* * *

#### Comments:

> **Ariel Aguilar commented on 21 July 2021**
>
> > 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

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:23am UTC](https://community.exalate.com/t/request-type-errors-custom-field/4781/2 "2024-11-04T07:23:32Z")

</div>

_Answer by Maarten Wildeman on 02 August 2021_

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

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:23am UTC](https://community.exalate.com/t/request-type-errors-custom-field/4781/3 "2024-11-04T07:23:32Z")

</div>

_Answer by Maarten Wildeman on 22 July 2021_

//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 }

)

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:23am UTC](https://community.exalate.com/t/request-type-errors-custom-field/4781/4 "2024-11-04T07:23:33Z")

</div>

_Answer by Maarten Wildeman on 22 July 2021_

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

* * *
