# Try to sync Additional comments but it create Work notes

**URL:** <https://community.exalate.com/t/try-to-sync-additional-comments-but-it-create-work-notes/4904>\
**Category:** General Questions\
**Tags:** servicenow-jira, feature-customfield, migrated\_question\
**Created:** [November 4, 2024, 7:31am UTC](https://community.exalate.com/t/try-to-sync-additional-comments-but-it-create-work-notes/4904 "2024-11-04T07:31:09Z")\
**Posts on this page:** 3\
**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:31am UTC](https://community.exalate.com/t/try-to-sync-additional-comments-but-it-create-work-notes/4904/1 "2024-11-04T07:31:09Z")

</div>

_Originally asked by Ariel Aguilar on 20 October 2021 [(original question)](https://oldcommunity.exalate.com/questions/37554169)_

* * *

Question by client:

I try to sync text field from jira to Additional comments on Service Now but the comment created as Work notes and not as Additional comments.

my script is:  
if((previous.customFields.“SNOW Comments”?.value!=replica.customFields.“SNOW Comments”?.value) && replica.customFields.“SNOW Comments”?.value){  
def comment = new BasicHubComment()  
comment.setBody(replica.customFields.“SNOW Comments”?.value)  
incident.addedComments += 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:31am UTC](https://community.exalate.com/t/try-to-sync-additional-comments-but-it-create-work-notes/4904/2 "2024-11-04T07:31:10Z")

</div>

_Answer by Yael on 20 October 2021_

TNX  
it’s work 😄

* * *

---

<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:31am UTC](https://community.exalate.com/t/try-to-sync-additional-comments-but-it-create-work-notes/4904/3 "2024-11-04T07:31:10Z")

</div>

_Answer by Ariel Aguilar on 20 October 2021_

Please try the following:

```auto
if((previous.customFields."SNOW Comments"?.value!=replica.customFields."SNOW Comments"?.value) && replica.customFields."SNOW Comments"?.value){
def comment = new BasicHubComment()
comment.setBody(replica.customFields."SNOW Comments"?.value)
comment.setInternal(false) 
incident.addedComments += comment
}

```

Kind regards,

Ariel

* * *
