Hi,
Are there any Jira APIs to get details of all sub-tasks in a project
I tried using JQL to fetch these details which i can see all sub-tasks are coming but when using it as a parameters in below URL, many sub-tasks are getting missed.
https://balic.atlassian.net/rest/api/2/search?jql
This is URL im using wherein i can see many sub-tasks are getting missed
https://balic.atlassian.net/rest/api/2/search?jql=%20project%20=%20OPS%20AND%20issuetype%20=%20%22Development%20Task%22%20order%20by%20created%20DESC
Hi @Mayur Gaikwad/Tech PMO
try the following JQL:
project = ProjectName and issuetype IN subTaskIssueTypes()
this displays all issues that are of type "subtask" in the project
Please check this doc about searching via rest api. Maybe this will help you to fix that - https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-query-issues-6291606/
Another question - As I understand "Development Task" is your sub-task type right?
Regards,
Seba
You are using the correct end-point, but please note that the response is paginated!
For example, if there are 10,000 sub-tasks on your issue, it will not return them as a single JSON response because that wouldn't scale. Instead, it returns the first batch of N issues, then gives you another link to return the second batch, and so on. You have to walk through all pages to get the full result.
See: https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination
It looks like you're new here. Sign in or register to get started.