# First sync from SN to Jira SD - how to get ID of ticket created in Jira?

**URL:** <https://community.exalate.com/t/first-sync-from-sn-to-jira-sd-how-to-get-id-of-ticket-created-in-jira/4543>\
**Category:** General Questions\
**Tags:** servicenow-jira, migrated\_question, jira-servicenow-inte\
**Created:** [November 4, 2024, 7:05am UTC](https://community.exalate.com/t/first-sync-from-sn-to-jira-sd-how-to-get-id-of-ticket-created-in-jira/4543 "2024-11-04T07:05:19Z")\
**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:05am UTC](https://community.exalate.com/t/first-sync-from-sn-to-jira-sd-how-to-get-id-of-ticket-created-in-jira/4543/1 "2024-11-04T07:05:19Z")

</div>

_Originally asked by Andrew on 11 January 2021 [(original question)](https://oldcommunity.exalate.com/questions/20124124)_

* * *

Hello team,

I am creating INC in SN and sending it to Jira SD. Ticket is created succefully.

Destination side, i.e. Jira’s incoming script - firstSync section - looks as below

(and some more lines but not relevant):

`if``(firstSync){`  
`syncHelper.syncBackAfterProcessing()`  
`}`

Source side, i.e. line in SN incoming script for replica.key looks as below:

```auto
def defaultEntityType = "incident"   
if(firstSync) entityType = defaultEntityType else entityType  
if(entityType == "incident")   
   {   
   incident.u_jira_incident_ticket_id = replica.key  
   ....  
   }

```

I don’t receive Jira’s ticket ID (ITC-…) in response, i.e. after ticket is created in Jira from SN side, and also don’t get ITC-… when this ticket is updated on Jira’s side and update is sent to SN.

The only case when ITC-… is saved in SN is when new ticket is created in SN from Jira side.

* * *

#### Comments:

> **Jonathan Gilbert commented on 14 January 2021**
>
> > Hi Andrew/ Support
> 
> I am also seeing the same issue, When a ticket is created from ServiceNow, Jira is not pushing the ticket ID back. I have looked at your suggestion Francis and I see no Outbound sync leaving Jira

---

<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:05am UTC](https://community.exalate.com/t/first-sync-from-sn-to-jira-sd-how-to-get-id-of-ticket-created-in-jira/4543/2 "2024-11-04T07:05:21Z")

</div>

_Answer by Olimpia Estela Caceres-Brown on 29 November 2022_

Francis Martens (Exalate)

I am curious to know if the above question was solved.

See my question post about sync Status Resolved from SN to Jira Service Management.

I’ll really appreciate any help.

Thanks,

Olimpia

* * *

---

<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:05am UTC](https://community.exalate.com/t/first-sync-from-sn-to-jira-sd-how-to-get-id-of-ticket-created-in-jira/4543/3 "2024-11-04T07:05:21Z")

</div>

_Answer by Francis Martens (Exalate) on 11 January 2021_

Can you check if the syncBackAfterProcessing is called?  
Whenever exalating from servicenow to Jira, you should see in Jira, in the sync queue a message in the outgoing queue once that the incoming sync is processed.

If this is not happening - you will have to share your exalate support zip through the support portal as there might be another problem.

* * *
