Forums

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

Page goes to 504 bad gateway, if all projects looped with getProjectObjects to fetch all issues data

arunk April 20, 2018

I have a requirement to display all the issues data between the given period of date (from and to). And i have used the servlet plugin

 

I have used getProjectObjects() method using ProjectManager and also used Issue Manager to get all the issues from all the projects and each issue will be checked with the given date values(issues created and updated date matched with given from and to date).

I am getting the expected results if individual projects are selected, but for ALL projects it goes to 504 bad gateway error.

The timeout is 65 seconds and within that the results are not computed, then goes to 504 Bad gateway.

 

project = projectManager.getProjectObjects();

for(Project project : projects){
          List<Issue> issues =   issueManager.getIssueObjects(issueManager.getIssueIdsForProject(project.getId()));

for (Issue issue : issues) {
 // Get the Issue related details.        
 }

 

1 answer

0 votes
Thomas Deiler
Community Champion
April 22, 2018

Dear @arunk,

I don't know the details of your setup, but I guess that there is a proxy in front of Jira. The request you sent will cause high load to the whole system and it takes some time. The proxy has set some timeout when the request is terminated. This happens before Jira can answer. To get rid of this you can do either

  1. decrease the issues to compute (make it in more chunks)
  2. increase the timeout of the proxy.

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events