To populate those fields, the incoming ServiceNow script looks like this:
// trigger a sync back to the jira instance
if(firstSync){
syncHelper.syncBackAfterProcessing(
)
}
//Define date and time
TimeZone.setDefault(TimeZone.getTimeZone(‘EST5EDT’))
def now = new Date()
def timestamp = now.toTimestamp()
//Jira URL in Integration URL field
entity.correlation_display = remoteIssueUrl
//Jira key in Integration ID field
entity.correlation_id = replica.key
//Set time stamp
entity.u_last_synced_to_servicenow = “” + timestamp
//Integration App link - name of this connection
entity.u_correlation_app_link = “Connection Name”