I'm have to create a Jira request for the custom fields? How do I get the custom field values in backend in getter and setter?
"fieldId":"customfield_10600", "fieldId":"customfield_11318",
Eg : customfield_10600 stores email value and
customfield_11318 stores the phone number val
Thanks
welcome to the Atlassian Community.
I'm assuming you're using this REST API (POST /rest/servicedeskapi/request) to create a customer request, right?
In order to get the values to provide to the REST API, you can call GET /rest/servicedeskapi/servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/field.
Let us know if that works,
Matthias.
Thank you for the reply.
I want to set values to the custom fields and they are part of
https://jira.hyundai-autoever.eu/rest/servicedeskapi/request")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the fieldId is the ID which you'll have to pass as the REST API docs explain for requestFieldValues:
JSON map of Jira field IDs and their values representing the content of the request.
I hope that helps.
PS: If you reply directly to an answer, you get nice answer threads :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.