POST https://<domain name>.atlassian.net/rest/api/3/search this api has been deprecated and new recommendation is
https://<domain name>.atlassian.net/rest/api/3/search/jql
below is body
{
"jql": "assignee = currentUser() AND resolution = EMPTY",
"startAt": 0,
"maxResults": 50,
"fields": [
"summary",
"status",
"assignee"
]
}
but getting error like below
{
"errorMessages": [
"Invalid request payload. Refer to the REST API documentation and try again."
]
}
what is the correct format and what is wrong in my payload and api url?
Hi @MVaseem_Fathima ,
Welcome to the community !!
You can refer https://developer.atlassian.com/changelog/#CHANGE-2046 for more details about new api.
Hello @MVaseem_Fathima
but getting error like below - "Invalid request payload..."
When you encounter such errors when sending requests to REST APIs you need to break the problem down into smaller pieces and systematically evaluate each step in creating the request so that you able to determine which specific part of your request is responsible for the error.
For example:
In this manner you will identify which parameter you have incorrectly used in your request body that has caused it to become invalid.
Good luck!
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.