How to update pass/fail result of issue with type 'Test' in jira with jira command line interface ?

Raj Mehta February 28, 2014
I have installed Zephyr plugin for jira and created testcases using it. Now i want to update issue with execution status pass/fail using JIRA CLI library. e.g --action updateIssue --executionstatus pass. Similar to this. Custom id for field execution status will also helpful. Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Emily Schneider
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.
March 2, 2014

Hi Raj,

Below is all the information for ZAPI. ZAPI is our Zephyr for JIRA API's which allow you to bring automation into Zephyr for JIRA:

A video to help get you started:
https://www.youtube.com/watch?v=oqk7vvsc8l8

Docs:
http://developer.yourzephyr.com/zapi/index.php

ZAPI download:
https://marketplace.atlassian.com/plugins/com.thed.zephyr.zapi

Our ZAPI REST API library:
http://docs.getzephyr.apiary.io/

Kind Regards,

Emily

Raj Mehta March 3, 2014

Thanks Emily..That is what i am looking for.
Just one question is there. I am getting error while performing - http://My_Jira_Ip/rest/zapi/latest/execution/{id}/quickExecute.I am not getting the term '{id}'.
It says 'Invalid executionId'. I am not able to find execution id. Other APIs are working fine.
Thanks..

Daniel
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.
March 3, 2014

Hi Raj,

The {id} in the quick execution API is the {id} of a test scheduled in a cycle. This API operation is the same as manually changing the status of the test schedule in a cycle from the drop-down - instead of clicking the 'E' button and filling out the information there.

You can find a Python example of this API in action on our community forum here:

http://community.yourzephyr.com/viewtopic.php?f=21&t=1245

Regards,

Daniel

Raj Mehta March 4, 2014

Thank you Daniel.
I found one useful thing from your link,that i was not creating any execution before executing test so it was getting null value. But now its working fine.

Thanks,
Raj

Juby John June 4, 2018

Hi 

Is there a way to perform bulk execution? In other words execute all the test cases in a cycle at once.

Suggest an answer

Log in or Sign up to answer