Hi,
I have to send a json to the jira api to create a ticket/issue.
Url api: https://mydomain.net/rest/api/3/issue
I add key and required fields of the project.
I have this field in my Jira tickets when I look into the XML file to see the structure ad fields:
....
<customfield id="customfield_10020" key="com.atlassian.servicedesk:vp-origin">
<customfieldname>Request Type</customfieldname>
<customfieldvalues> </customfieldvalues>
</customfield>
.....
1. The field "customefield_10020" features: are as follows:
name: Request Type
3 values:
1. Request
2. Done
3. Question
The json below gives me an error:
{
"customfield_10020": "Request",
}
error.
[\"Request Type: Invalid client request value\"],\"errors\":{}}
2. And if a I my json for this field is
}
"customfield_10020": {
"key": "customfield_10020",
},
It gives this error:
"{\"errorMessages\":[],\"errors\":{\"Concession\":\"data was not an array\"}}"
What json format should I send for this field customized?. I'm confused
Thanks
Hello @jg ,
Thanks for reaching out, and looking at the error response this is hanging up on the request type indicating the project type is Jira Service Management, and the endpoint that you are using is the create method for Jira Software.
Jira Software and Jira Service management have different approaches and requirements for creating issues.
The endpoint you want to look at is "Create customer request" via:
Regards,
Earl
Thanks for the anwser,.
That means I have to wite my json like this:
"customfield_10020": [
{
"key": "customfield_10020"
}]
However, the field customfield_100020 is a type "requestType", so can I values to a "requestType" from the endpoint https://mydomain.net/rest/api/3/issue or https://mydomain.net/rest/api/2/issue?
What would it be the json?, ie, or some fields are left?
"customfield_10020": [
{
"serviceDeskId": "2",
"requestTypeId": "98",
}]
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @jg ,
Modifying the Request Participant is done entirely from the Service Management API
Adding a request participant to a request in the Service Management API is done via the endpoint:
And Removing a request participant is done via:
Regards,
Earl
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.