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

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

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

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..

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

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

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,254 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot