Hi all,
I am trying to make a script that assigns Customers to an organization upon Issue Creation with Scriptrunner.
I have used the "Add user to organization" method documented here: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-user-post
and while it works with licensed users, it turns up errors whenever I try it with a customer accountId.
{"errorMessage":"Could not find accountIds: qm%3A9c4ffcdc-c9a8-4072-a73d-f1c796ec83cd%3A86f55d53-c694-4db6-84ed-0889500b7fac","i18nErrorMessage":{"i18nKey":"sd.request.participants.validation.missing.account.ids","parameters":["qm%3A9c4ffcdc-c9a8-4072-a73d-f1c796ec83cd%3A86f55d53-c694-4db6-84ed-0889500b7fac"]}}
2021-08-13 09:18:49.728 INFO - {"errorMessage":"Could not find accountIds: qm%3A9c4ffcdc-c9a8-4072-a73d-f1c796ec83cd%3A86f55d53-c694-4db6-84ed-0889500b7fac","i18nErrorMessage":{"i18nKey":"sd.request.participants.validation.missing.account.ids","parameters":["qm%3A9c4ffcdc-c9a8-4072-a73d-f1c796ec83cd%3A86f55d53-c694-4db6-84ed-0889500b7fac"]}}
I also (without luck) tried out some suggestions found around the atlassian comunitty, such as: https://community.atlassian.com/t5/Jira-Service-Management/Organization-automation/qaq-p/225618
So I'd like to ask if there's something I have overlooked somewhere and/or if it is even possible to add Costumers to organization via script?
Any suggestions/ even a clear "not possible", is much appreciated!
Had high hopes for JSD, but without the ability to auto assign customers, it probably isn't for us.
Kind regards,
Amanda