How to identify iterationID

rdutu October 21, 2022

Hello,

 

I'm struggling to update steps status, and in order to be able to proceed, I need to identify the iterationID

GET -> http://myapplication.com/jira/rest/raven/2.0/api/testrun/000001/iteration/{iterationID}

 

I read the documentation and I'm not able to find anything related to how to get it. Also, I used the GET endpoint on execution, and I wasn't able to find anything related to this ID in the json response.

 

2 answers

2 accepted

1 vote
Answer accepted
rdutu October 25, 2022

Found the issue.

The iterations parameter is present in the testrun json response, only if the test case has dataset.

 

"iterations": [
{
"id": 100,
"status": "PASS",
"color": "#95C160",
"parameters": [
{
"name": "Car type",
"value": "Used car"
}
]
]
ID of the iteration is present in the json as well.
For test cases where there are no datasets defined, V2 API is not working to update test case steps, need to use V1 implementation.
0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2022

Hi @rdutu -- welcome to the community,

First I need to say I´m not familiar with iterations but I have experience with xray and it´s api.

From your initial post´s tags I assume you are using cloud. I couldn´t find any hint that cloud API is providing such an endpoint. 

See documentation link below:
https://docs.getxray.app/display/XRAYCLOUD/Version+2

 

In case you have any example/link to your mentioned documentation please share the link here.

Thanks in advance.

Best
Stefan

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2022

Hi @rdutu 

As I was assuming in my answer this link leads to the api documentation of server version:

image.png

Regarding your post you are running a cloud instance so this also comes with a different API.

Best
Stefan

rdutu October 24, 2022

but I'm using the expected API, it works for all implemented calls

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2022

Hi @rdutu ,

Could you give some example calls with use cases of implemented calls? Can you confirm that your deployment type is cloud?

Best
Stefan

rdutu October 24, 2022

Yes, deployment type is cloud :D 

 

This is a get test run ID from a test execution. 

http://myJira.com/jira/rest/raven/2.0/api/testrun?testExecIssueKey=CAR-6477&testIssueKey=CAR-6210

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events