We are developing report plugin in JIRA and want to display issue id, issue summary,issue discription as a output.
We have wriiten a JQL query for this
JqlQueryBuilder queryBuilder = JqlQueryBuilder.newBuilder();
Query query=queryBuilder.where().createdBetween(startDate,endDate).and().project(projectId).and().issueType("Test").buildQuery();
and for getting the result we are using searchResult as follow :
SearchResult searchResults= searchProvider.search(query, remoteUser, PagerFilter.getUnlimitedFilter());
But we are not getting any data in searchResult
Community moderators have prevented the ability to post new answers.
Replace your JQL in given tutorial.
https://developer.atlassian.com/jiradev/jira-platform/projects/tutorial-creating-a-jira-report
Cheers !
Is your log file showing any errors or warnings when the code runs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are no errors or warning in log file we are not getting any value in "serachResult".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that strongly suggests that the filter is working, but finding nothing. If you run the equivalent JQL in JIRA, do you get anything? (Created > startDate and Created < endDate and project = xxx and issuetype = "Test") run as the same user. You might also want to check that remoteUser contains a valid user who can see the issues - a null in there will run the filter as non-logged in user, which is still valid, but may well not be able to see anything. As a rather klunky debug method, I'd also try running the code with more simply queries built - does "project = x and issuetype = y" return anything for example? If that works, then you know it's the date clause that's the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.