Forums

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

In the API for creating request, It doesn't accept values for the fields Priority, shared with etc

KUMARESAN MUPPIDATHI January 30, 2022
I want to create service request with values for more fields like prioirty, urgency, shared with, label etc.
The API doesn't accept any values except summary, description and on behalf of.
POST /rest/servicedeskapi/request
{
    "summary":"test-sub",
    "description":"test-des",
    "requestTypeId":"27",
    "priority":"1",
    "Urgency" : "High",
    "sharedWith" : "5f8fdf2dddb0df006e750949",
    "labels":"UI"
}
I'm getting the below error for priority and more over getting this same kind of error for all other fields too:
"Unrecognized field "priority" (Class com.atlassian.servicedesk.api.rest.dto.domain.request.RequestCreateDTO), not marked as ignorable
at [Source: org.apache.catalina.connector.CoyoteInputStream@119fbcd1; line: 1, column: 172] (through reference chain: com.atlassian.servicedesk.api.rest.dto.domain.request.RequestCreateDTO["priority"])".
As it is highly emergency, any quick help would be great.
Thanks in advance!!!

1 answer

2 votes
Pramodh M
Community Champion
January 30, 2022

Hi @KUMARESAN MUPPIDATHI 

The following  format should be followed when raising a request

And remember you can only add values which are available o screen in the customer portal via this request

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

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events