Forums

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

/rest/api/3/search/jql接口根据传入的不同的jql拿到issue的列表

Haoran Shang
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!
January 4, 2026

你好,我有一个问题想请教一下,我现在使用/rest/api/3/search/jql接口根据传入的不同的jql拿到issue的列表,我是用接口调用工具测试时,结果返回的状态是200但是数据为空。我在jira页面上使用相同的jql操作是有数据的,这是为什么,怎么解决?下面是我的curl

--header 'Accept: application/json' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic' \
--header 'Host: tngd-jira.atlassian.net' \
--header 'Connection: keep-alive' \
--header 'Cookie: atl-sticky-version={"currentVersion":"-17251","currentVersionExpiry":""}; atlassian.xsrf.token=' \
--data-raw '{
  "jql": "project = EW AND issuetype in (\"Dev-Sub Task\",\"Bug\")",
  "maxResults": 5,
  "fields": ["key", "summary", "status", "assignee"],
  "fieldsByKeys": true
}'

2 answers

0 votes
Marc -Devoteam-
Community Champion
January 5, 2026

Hi @Haoran Shang 

Welcome to the community.

@Sunny Ape is right here.

You api cal should be:

https://tngd-jira.atlassian.net/rest/api/3/search/jql?jql=project = EW AND issuetype IN ("Dev-Sub Task,Bug)&maxResults=5&fields=key,summary,status,assignee

0 votes
Alexander Nilsson
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 Champions.
January 4, 2026

posted in error

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 Champions.
January 4, 2026

@Alexander Nilsson 

Please don't just copy and paste responses that you have sourced from an AI, as they are often very wrong!

This POST endpoint is deprecated. Use the new GET /rest/api/3/search instead

Sorry, but that is completely wrong Alexander and you are providing misinformation on the topic.

The API endpoint you have referenced and told the OP to use was deprecated almost 9 months ago and, as a result, the cURL example you provided in step 2 of your answer cannot possibly work. If you had tested your own code yourself, you would have discovered that.

The endpoint that the OP is using (POST /rest/api/3/search/jql), which is the new Search for issues using JQL enhanced search endpoint, is 100% operational and absolutely has NOT been deprecated.

Like # people like this

Suggest an answer

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

Atlassian Community Events