Jira Service now integration

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018
Dear all,

We are currently working on JIRA service now integration using Restapi.

I have a question on this integration.

We are trying to map a user picker field from service now to the reporter field in JIRA. This actually works fine for one set of users whose username are same in JIRA and service now, however we have another set of users whose usernames across both the systems do not match with one another. This is not allowing us to map the demand manager field in service now to the reporter field in JIRA

My question is that
Is there a way to tweak a reference to the reporter using the email address so that we can auto populate the reporter using email address. Thanks

Niran

2 answers

1 accepted

1 vote
Answer accepted
Prakhar Srivastav {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2018

@Niranjan

You can use https://your-jira/rest/api/2/user/search?username=user@email.com

 

/api/2/user/search has parameter username which takes  query string used to search username, name or e-mail address.

You can use this REST API to search user by email address.

 

Regards

Prakhar

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2018

Hi @Prakhar Srivastav {Appfire},

Thanks for your help. That worked. Is there a way to populate the reporter field using an email address?

The service now team will send the email address to a text field value in JIRA. Can we lookup for the email address and use the username as reporter field in JIRA?

Can we do with postfunctions for create issue  transition in a workflow ? Copy field value from one field to other didnt work as the field types of email address and reporter are different.  Let me know your thoughts.

 

Regards

Niran

0 votes
Richa Kashyap January 13, 2019

Hey Niranjan,

If you haven't succeeded in your efforts so far, you can checkout https://www.opshub.com/jira-integration/jira-servicenow-integration/. It's a integration tool listed on Atlassian Marketplace and can help you sync history, user data, audit trail, etc. 

Thanks

Suggest an answer

Log in or Sign up to answer