Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automated adding customer to project

Myles Boyd
Contributor
September 8, 2025

I am trying to automate adding a customer to a project post approval.

icedeskapi/servicedesk/16/customer

The POST failes with 

Invalid request payload. Refer to the REST API documentation and try again.

the payload is:

{
"email": "{{issue.customfield_12059}}"

}

 

though have also tried

{
"email": "{{issue.customfield_12059}}",
"fullName": "{{issue.customfield_12061}}"
}

 

 

Both Accept and Content-Type are set to application/json

 

Any ideas appreciated

 

thank you

 

1 answer

1 vote
Bill Sheboy
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 8, 2025

Hi @Myles Boyd 

According to the docs, displayName and email are required, and fullName has been deprecated:

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-customer/#api-rest-servicedeskapi-customer-post

 

Kind regards,
Bill

Myles Boyd
Contributor
September 8, 2025

Hi Bill

Thanks for speedy response.

 

I changed the payload and got past that error. 

The Create customer call in the link you provided adds someone to the JSM instance; I am trying to add to a particular project.

 

If the guide I found is no longer valid, any ideas on adding to a project?

 

Thanks again

 

Bill Sheboy
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 8, 2025

I believe once the customer is created / exists, they may be added to the specific service desk project with another endpoint:

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/#api-rest-servicedeskapi-servicedesk-servicedeskid-customer-post

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events