Это не ожидается в производственной системе..."
Я видел другие сообщения с той же проблемой, но ни одно из них не решило проблему. Любая помощь определенно приветствуется!
Вот код:
package com.atlassian.ccft.impl;
импорт com.atlassian.jira.comComponent.ComponentAccessor;
импорт com.atlassian.jira.issue.MutableIssue;
публичный класс mainCCFT {
Код: Выделить всё
public static void main(String[] args) {
String IssueReference = "CAP-3";
String customFieldId = "CCFT Forecast Finish";
Код: Выделить всё
// Instantiate the issue
Код: Выделить всё
// Get the issue
MutableIssue issue = ComponentAccessor.getIssueManager().getIssueByCurrentKey(IssueReference);
// Get the custom field value
Object forecastFinish = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject(customFieldId));
System.out.println(forecastFinish);
}
Значение customField должно быть распечатано.
Другие посещенные сайты включают
ComponentAccessor не инициализирован
Как получить значения настраиваемых полей в jira? текст
Подробнее здесь: https://stackoverflow.com/questions/786 ... nitialised