I was testing the jira plugin on my internal jira server and it failed collecting the issues due to timeout.
Would it be possible making the MaxResults variable as a configuration parameter ? By default it is 1000 but being able to change to 100, for example, would work better.
The issues endpoint is paginated, and the MaxResults parameter is controlling the maximum size of each page. Looks like the hardcoded value of 1000 is causing the timeout you’re seeing.
I wonder if we should:
Have a configuration for it, as you suggested.
Have a better hardcoded default, because 1000 is just too much (default is 50, which we didn’t use because pagination was too slow).
Adjust dynamically upon seeing those timeouts, rather than adding a configuration.
Could you please share the exact error you’re seeing? Let’s try to make sure this is indeed what’s going on.
I have tried the same URL with postman and I got the same timeout (which is due to my own server not able to handle that amount of data in the response)
My suggestion would be to have something like 500 as default and have the optional parameter available in the config. It is not worth it, IMHO, to change the code to add a dynamic changing value at runtime.
That suggestion would be better suited for the GitHub plugin which hits the rate limit very quickly.