Forum Discussion

apuna12's avatar
apuna12
Occasional Contributor
4 years ago
Solved

Create a new test case via API

Hello all,   I would like to ask how can I create Test or any kind of issue through Zephyr's API. I was able to create test cycle through the following API https://zfjcloud.docs.apiary.io/#referen...
  • JagadeshMadhura's avatar
    JagadeshMadhura
    4 years ago

    Hi apuna12 


     https://my-jira.atlassian.net/rest/api/3/issue ? this endpoint is correct, since this is JIRA Api call and for create cycle its zephyr operation so end point for zephyr api's is different

    As per screenshot error I can see that you are using jira password as password field in basic authentication. In jira you can't use password in basic authentication, you have to use JIRA Api key value as password field. 

     

    Follow below steps to generate your JIRA Api key:

    1. Click on user profile

    2. Navigate to manage account

    3. Click on security 

    3. Create and manage api tokens


    or directly navigate to url : https://id.atlassian.com/manage-profile/security/api-tokens
    and create api token

    Once you generated the api token >> copy the api token value and use it as your password field in postman basic authentication and try again

     

    Thanks

    Jagadeesh