Forums

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

Getting all the xray tests in Jira

Bala Perumalraj May 12, 2019

Hi Jira team,

I am trying to get all the Xray tests for a Project using Graphql query. This project has more than 100 tests. When I try to get the tests I am getting the below error. Please advice or help in this.

{
"errors": [
{
"message": "Invalid value for limit, the value must be between 1 and 100."
}
]
}

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2019

You need to give it a limit in your call, because XRay needs to know where to stop (and not overload the server).

Bala Perumalraj May 12, 2019

There is currently a limit of 100, If I go more than 100 then the above error is thrown.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2019

Yes, that's because it is written to stop you going over the limit so you don't cripple your server.  You need to put the limit into your REST call.

Bala Perumalraj May 13, 2019

How do I get the rest of tests?

Suggest an answer

Log in or Sign up to answer