Get all the users from JIRA to ServiceNow instance to store the JIRA account ID of the users

Lithesh
Kilo Sage

I have a requirement to integrate policy table to JIRA. For doing so I need to map several fields such as Assigned to and other user fields. I'm using Integration hub professional to do this. Put the issue I'm facing is I need the account ID of the users to send them to JIRA so that JIRA will map the correct id. Appreciate if anyone gives a solution. 

 

Thanks.

Lithesh

1 REPLY 1

SanjivMeher
Mega Patron

We dont use integration hub. But this is how we map. We pass the user name in the api to the fields.reporter.name or fields.assignee.name.

 

if (pfield == 'reporter')
JIRATicketDataJSON.fields.reporter = {
"name": <username> + ''
};
else if (pfield == 'assignee')
JIRATicketDataJSON.fields.assignee = {
"name": <username> + ''
};

Please mark this response as correct or helpful if it assisted you with your question.