Hi,
This is the JSON response I'm getting from Jira API 3 URL
How do I Navigate and populate schema?
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Schema
{
public string type { get; set; }
public string custom { get; set; }
public int customId { get; set; }
public string system { get; set; }
public string items { get; set; }
}
public class Root
{
public string id { get; set; }
public string key { get; set; }
public string name { get; set; }
public bool custom { get; set; }
public bool orderable { get; set; }
public bool navigable { get; set; }
public bool searchable { get; set; }
public List<string> clauseNames { get; set; }
public string untranslatedName { get; set; }
public Schema schema { get; set; }
}
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-search-get
[
{
"id": "description",
"name": "Description",
"custom": false,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"description"
],
"schema": {
"type": "string",
"system": "description"
}
},
{
"id": "summary",
"key": "summary",
"name": "Summary",
"custom": false,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"summary"
],
"schema": {
"type": "string",
"system": "summary"
}
}
]