简体   繁体   中英

get all issues stored in jira

hi i want to get all issues stored in jira from java using jql or any othere way. i try to use this code:

for(String name:getProjectsNames()){
String jqlRequest = "project =  \""+name+"\"";

    SearchResult result = restClient.getSearchClient().searchJql(
            jqlRequest, 10000,0, pm);

    final Iterable<BasicIssue> issues = result.getIssues();
    for (BasicIssue is : issues) {
        Issue issue = restClient.getIssueClient().getIssue(is.getKey(), pm);
        ...........

    }

it give me the result but it take a very long time. is there a query or a rest API URL or any other way that give me all issues? please help me

The JIRA REST API will give you all the info from each issue at a rate of a few issues/second. The Inquisitor add-on at https://marketplace.atlassian.com/plugins/com.citrix.jira.inquisitor will give you thousands of issues per second but only the standard JIRA fields.

There is one other way. There is one table in JIRA database named " dbo.jiraissue ". If you have access to that database then you can fetch all the ids of all issues. After fetching this data you can send this REST request "**localhost/rest/api/2/issue/issue_id" and get JSON response. Of course you have to write some code for this but this is one way I know to get all issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM