Skip to content

Instantly share code, notes, and snippets.

@iokiwi
Last active January 19, 2023 07:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save iokiwi/25f7b5525e8bb542dc44ac1fa02918ef to your computer and use it in GitHub Desktop.
Save iokiwi/25f7b5525e8bb542dc44ac1fa02918ef to your computer and use it in GitHub Desktop.
@hooliowobbits
Copy link

as a followup, i was able to successfully use the curl method discussed at https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-customer-post

curl --request POST \
--url 'https://XXX.atlassian.net/rest/servicedeskapi/customer' \
--user 'XXX@XXX.com.au:GXXXXXXXXXXXXXXX1' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"email": "fred@example.com",
"displayName": "Fred F. User"
}'

which leads me to believe it's not actually problem with signups. not sure.

@iokiwi
Copy link
Author

iokiwi commented Dec 13, 2018

Jesus, how do I get notifcations for this thing. Sorry @hooliowobbits :(. Did you get it sorted? Happy to help if not

@iokiwi
Copy link
Author

iokiwi commented Dec 13, 2018

Guys, I'm gonna move this over here and might do some cleanup https://github.com/iokiwi/jsd-bulk-customer-upload

@deskenazi
Copy link

Your new script at https://github.com/iokiwi/jsd-bulk-customer-upload worked flawlessly out of the box for my company. Thank you!

@sks321
Copy link

sks321 commented Aug 29, 2019

Thanks a lot for the script. I can create customers and organizations but after that I cant add customers within organizations.
I get this error
{"errorMessage":"This request is invalid. The following users could not be found: xxx@xxx.com","i18nErrorMessage":{"i18nKey":"sd.rest.error.bad.request.users.not.found","parameters":[" xxx@xxx.com"]}}
Can you please help with this error?

@iokiwi
Copy link
Author

iokiwi commented Sep 3, 2019

Welcome @deskenazi @sks321 did you have any luck with that error? I can try debug that for you, where did this error occur, can you send me some logs?

@iokiwi
Copy link
Author

iokiwi commented Sep 6, 2019

This script has moved

Redirect -> https://github.com/iokiwi/jsd-bulk-customer-upload

  • Source - Contributing
  • Issues - Please raise any issues here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment