Я интегрирую Jira в свое приложение. Различные типы задач (например, Story / Task / Support Incident) имеют другой набор полей, которые необходимо добавить для создания задачи данного типа issueType.
У меня есть общий POJO с полями для всех типов задач. Когда я нажимаю Jira API для создания задачи типа Story, он не сообщает, что поля (которые необходимы для инцидента поддержки типа issueType) недоступны на экране.
{
"errorMessages": [],
"errors": {
"key1": "Field 'key1' cannot be set. It is not on the appropriate screen, or unknown.",
"key2": "Field 'key2' cannot be set. It is not on the appropriate screen, or unknown.",
"customfield_10216": "Field 'customfield_10216' cannot be set. It is not on the appropriate screen, or unknown.",
"customfield_21263": "Field 'customfield_21263' cannot be set. It is not on the appropriate screen, or unknown.",
"customfield_10704": "Field 'customfield_10704' cannot be set. It is not on the appropriate screen, or unknown.",
"customfield_10212": "Field 'customfield_10212' cannot be set. It is not on the appropriate screen, or unknown."
}
}
Как мы можем игнорировать неизвестные поля в Jira API?