Hi,
I have managed to create a TestExecution in JIRA using the REST API but I'm struggling to update the status of it - all material I have found online points to updating the status of the Tests within this TestExecution - not the TestExecution itself
I have been able to update the execution status of the Test runs within the TestExection itself. My TestExecution is currently "In progress" and the status code for "Passed" is 1
So far I have tried:
rest/api/2/issue/{TestExecID} - { "status" : "1"}
rest/api/2/issue/{TestExecID}/transitions - { "transition": { "Id" : "1" } }
rest/raven/1.0/import/execution - {"testExecutionKey" : "{TestExecID}", "info" : { "status" : { "id" : "1" } } }
None of these have been successful so far - resulted in 405 Method not allowed, 500 Internal Server Error
Can anyone help? Apologies if I'm missing out obvious info, first time poster!
Thanks in advance
Hi @UI91
How did you update the test execution result? :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @UI91
Welcome to the community ;)
I tested this and it worked well. Let´s get this working also for you.
I was able to do the transaction (for a test execution) via cURL to transition to Done (41):
curl --request POST \
--url 'https://<your_instance>.atlassian.net/rest/api/3/issue/{issueKey}/transitions' \
--header 'Authorization: Basic $TOKEN' \
--header 'Accept: application/json' --header 'Content-Type: application/json' \
--data '{"transition":
{
"id":"41"
}
}'
Hope this helps.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
rest/api/2/issue/{TestExecID}/transitions - { "transition": { "Id" : "1" } }
This looks very similar to my approach. Maybe the {...} encapsulated in single quotes.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.