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

This widget could not be displayed.

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

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

137 views 2 0
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