Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to link defects using JIRA api call

Kevin Biasi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2022

I am hoping someone can point me to the correct API call and correct JSON payload structure, that will allow me to update

1) field "defects"

2) fields "executionDefects", "stepDefects", "testDefectsUnMasked", "stepDefectsUnMasked", "executionDefectCount", "stepDefectCount", "totalDefectCount"

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 23, 2022

Welcome to the Atlassian Community!

We can't do that.  None of those fields are standard system fields in Jira, so we can't tell you how to access them, as they could have any ID.

They also look like they may be coming from a test management app.  If that's the case, you probably want to be using the REST API for that app, not core Jira.  We can't even point at the docs if we don't know what the app is.

You're going to need to look this up for yourself, either in the testing app, or work through https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#:~:text=Creating%20an%20issue%20using%20the,ID%20of%20the%20issue%20type.  - there's a "create meta" call in there that asks Jira to tell you what fields are available on an issue.

Kevin Biasi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2022

Thanks for the update

Suggest an answer

Log in or Sign up to answer