Forums

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

Jira API Migration to /rest/api/3/search/jql

Devon Manelski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 15, 2025

I just completed my PM tool using the Jira API and the API I was using was decommissioned.  I am trying to convert my /rest/api/2/search?jql=filter= call to a  /rest/api/3/search/jql but I am getting a fail on the payload.  

Payload
{"jql": "project = "W_Health","startAt": 0,"maxResults": 100,"fields": ["summary","status","assignee","priority","created"]}

Response
{"errorMessages":["There was an error parsing JSON. Check that your request body is valid."]}

Any ideas on what is wrong with the payload?

For Additional Information
Set oHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
oHttp.Open "POST", sURL, False
oHttp.SetRequestHeader "Authorization", sAuthHeader
oHttp.SetRequestHeader "Content-Type", "application/json"
oHttp.Send sPayload


sResponse = oHttp.ResponseText

2 answers

1 vote
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2025

In addition to what @Bill Sheboy has correctly said, if you get JSON errors, use an online JSON linting / validation tool first to see if your JSON is actually valid.

Alternatively, use an API test tool like Postman that immediately highlights where and when your JSON is invalid.

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2025

Hi @Devon Manelski -- Welcome to the Atlassian Community!

For the payload you show, there is an extra quotation mark in the JQL before the project name.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events