adding a testcase to a testcyle generating http 400 bad request

I have installed jira 6.2, zephr for jira 2.2 and zapi 1.0 in a 30 day eval instance

I have created a project, added a couple of version to that project and then added some test cases to those versions

Using zapi, I have gotten the projectId/versionId and then created a test cycle to that version sucessfully

I am using the projectId/versionId retreived earlier and wish to add that testcase to the newly created testcycle using the rest call addTestsToCycle. Using the same params that worked in earlier rest calls. The error message I get is -"Invalid Cycle":"Unable to create execution, cycleId 9 does not belong to project 10000." even though I created that cycle with project 10000.

I tried to get all the cycles associated with that project to see what was there and got this message and got a http 400 response - bad requests

I am using the curl examples

My goal is to push test results on our jira server using zapi. Are there any other examples that I can try to use?

1 answer

This widget could not be displayed.

Hello Jan,

The API "/rest/zapi/latest/cycle" retrieve all Test Cycles for a given version of the selected project. If you are not able to get the cycles of that project or versions, please check the input as per the correct values from JIRA.

Apart from the Curl examples there are examples in different code formats.Check them by selecting Show code sample dropdown once an API is selected.

Kind Regards,

Swapna Kumar vemula.

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 yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

70 views 2 3
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