I have an already created Test Run in Jira with Adaptavists Test Management. Now I need to link more test cases to the same Test run but have to do it only via API. I'm using Postman.
I refer the API reference - https://www.kanoah.com/docs/public-api/1.0/ but can not see a solution here since no way to update an existing Test Run via API to link new test cases. Is there any other way to do this ?
Hi @Edu Car,
This is possible since the last release of Test Management for Jira (TM4J) v4.7.0. You can input test results to your test run by using one of these two endpoints:
If the test result is linked to a test case that doesn't belong to the test run, it will be automatically added to it. So you can, for example, create an empty Test Run and post your test results to it.
Let me know if that's clear enough for you?
Hey @Lahiru Wijesinghe ,
As per the documentation, the full URL should be:
Here is the link to the docs: https://docs.adaptavist.io/tm4j/server/api/v1/
Hope that works fine for you.
Hey @Lahiru Wijesinghe ,
No problem, glad to help. Let's move on :)
Well, there is something wrong with the URL obviously. Could you please paste you Jira URL here, and then I can try to make it correct? You can just replace some names if you don't want to disclose it...
No, actually this should be a POST or PUT operation, as per my first answer. If you want to try a GET, just to see it working and validate everything is correct, you can try this one:
GET https://<jira URL>/rest/atm/1.0/testcase/ASDE-T2042
This should retrieve the test case with key ASDE-T2042.
I recommend taking a look at the documentation, you will find all the endpoints there, available operations for each of them and request body examples:
The URL having 1.0 is the correct one. What is probably missing here is the search query, for example:
GET https://<jira URL>/rest/atm/1/testrun/search?query=projectKey IN ("JQA", "DEF") AND folder = "/Orbiter/Propellant"
That should work fine. Please take a look on the docs for more query examples:
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events