Sample - Fetch, Execute, and Update Test Issues and Executions

July 04, 2019

Code searches for, by JQL query, issues and appends all the ID's to a list. Then takes the ID list and assigns them all the a Ad-Hoc cycle. ZAPI will return the execution ID of the newly assigned test issues and appends them all to a new list. Finally, the list is used to then quick executes each assignment through a loop. As a bonus, the code links a predetermined defect to the newly executed executions.

See attached for downloadable copy

ZAPI documentation: http://docs.getzephyr.apiary.io/

Sourced software:

Products:

Versions: Zephyr for JIRA 2.1+, ZAPI 1.0+