The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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
}'

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Hi @Haoran Shang 

Welcome to the community.

@[deleted] 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

Marc -Devoteam-
Community Champion
January 21, 2026

Hi @Haoran Shang 

Please accept my answer as a solution, if my answer helped to solve or provide a workaround to your request.

This will help other community member trying to solve the same or provide them with a work around

P.S. If the answer is very valuable to you, please share some kudos.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events