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

Accepted Answer
0 votes

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,627 views 2 7
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