I'm creating a sync between Jira Service Desk and another system that has customer email addresses and I want to bulk add customers to organizations within Jira Service Desk.
With the upcoming changes in the Rest API, I can't figure out how to convert my list of customer email addresses into an accountId .
I need the accountId in order to add customers to organizations, so it seems until I can successfully lookup the accountId I'm stuck.
Thank you~!
Hi @Nathan Given ,
you should get the accountId as a response when creating the customer. Please take a look at the REST API documentation:
https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-customer-post
Here's another way if the customer already exists:
(it turns out I needed @Jakub Sławiński suggestion with this one.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nathan,
Is there away to do a search on that call? It just returns all users for me.
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I couldn't figure out a search... so I just got back all users, stored them in-memory, and had my bulk load only run once a day so as to not slow down any realtime or transactional requests.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It has query parameter.
The returned list of customers can be filtered using the
query
parameter. The parameter is matched against customers'displayName
,name
, or
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/rest/servicedeskapi/servicedesk/<id>/customer?query=<email>
together with post if no matches were found worked for me. Make sure to add the header below when using the customer api.
'X-ExperimentalApi' = 'opt-in'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the wake of growing customer expectations, development teams are facing more pressure to deliver innovations faster. Register for this 45-minute webinar to learn how devs can accelerate software delivery and time-to-market with Jira Service Management.
Register now 🚀Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.