Hello,
We have custom forms built in our applications which we link to JIRA ServiceDesks issues via the API.
I have 2 questions relating to this:
1. The user is logged into the app so we know their FirstName,LastName and email address. Is there a way that, if we match their email within JIRA then we set the reporter to that user within the issue?
2. If the user is not matched via email address, is there a way to create a customer account within JIRA via the API which will then set the reporter to the user logging an issue via the application form?
Hey Dan,
Thanks for reaching out to the Atlassian Community!
You can call the CreateCustomer REST API end point with the customers email address. If this returns back 400 then the customer already exists, or there is a problem with the email address. If it doesn’t exist it will create a new customer:
https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/#servicedeskapi/customer-createCustomer
You’ll want to make sure that you do some email validation before calling this end point.
Once you’ve created the customer, you may need to add them to the Service Desk, depending on your current customer sharing settings. https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/#servicedeskapi/servicedesk/{serviceDeskId}/customer
You can then raise a request on behalf of the user: createCustomerRequest https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/#servicedeskapi/request-createCustomerRequest
Hope this helps!
Cheers,
Keri
In regards to
You can then raise a request on behalf of the user: createCustomerRequest https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/#servicedeskapi/request-createCustomerRequest
What argument do I use to specify the customer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would also need to know this.
You can't adress the reporter field and there also seems to be no field like "customer" or any information about how to set this via the SD-API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello bud! Just set "raiseOnBehalfOf" field to the costumer that you want.
{
"serviceDeskId": "1",
"requestTypeId": "1",
"requestFieldValues": {
"summary": "Request JSD help via REST",
"description": "I need a new *mouse* for my Mac"
},
"raiseOnBehalfOf": "qm:a58be9bc-77cb-469a-969f-4a31bc08b487:83694b75-5714-45d8-b5ca-f16344d217ec"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.