Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to link defects using ZAPI cloud? Edited

Hi Team,

I want to link defect through ZAPI cloud. but the request body template provided in is invalid Json. when i hit endpoint with requestbody by modifying defect entity as json array, i get below error

{    "errorType""ERROR",    "clientMessage""issueId field value is null or 0 is not valid.",    "errorCode"123}


But if i remove the defect entity, the status is getting updated successfully. Please help

2 answers

1 accepted

0 votes
Answer accepted

Request example in docs is incorrect

{"status":{"id":1},"id":"0001456664462103-5a6ee13a3f6b-0001","projectId":10000,"issueId":10000,"cycleId":"0001456664262308-5a6ee13a3f6b-0001","versionId":-1,"comment":"Comment for execution","defects":"["IZ-1","IZ-2"]","assigneeType":"currentUser/assignee","assignee":"userKey"}

defects field should be list of native jira ids. e.g




So only way to extract the native Jira id in backend is through Jira API alone. not by Zapi!

this has to be addressed whereas we can use Testcase IDs instead of native jira ids for test case add, but not for defect mapping

Like Evgenii Sokolov likes this

Can sombody help? It's been open for long time. should i map it to anyone? 

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you