YOuTrack工作流程因一个项目而失败

时间:2020-01-08 15:41:01

标签: workflow youtrack

我已经编写了一个工作流,当更改该字段时,该字段会波及到儿童。这很好,并且在一个项目内(主要是在多个项目之间)都可以很好地工作。但是,有一个特定项目失败了。

据我所知,“坏”项目中的字段与其他项目中的字段相同。代码看起来像这样

issue.links['parent for'].forEach(function(subtask) {
            subtask.fields["Timesheet client"] = issue.fields["Timesheet client"];;
        }
    }

错误的堆栈跟踪看起来像

Processing issue ITP-6:Workflow runtime exception
            jetbrains.youtrack.scripts.wrappers.CustomReferenceFieldValueResolver.set(CustomReferenceFieldValueResolver.java:104)
            org.mozilla.javascript.gen.eqcs_timesheet_coding_change_timesheet_client_3105._c_anonymous_3(eqcs-timesheet-coding/change-timesheet-client:28)
            org.mozilla.javascript.gen.eqcs_timesheet_coding_change_timesheet_client_3105._c_anonymous_2(eqcs-timesheet-coding/change-timesheet-client:24)

我可以在分配之前记录零件和子任务字段,而它们似乎没有问题。

这是YouTrack 2018.2自托管。

0 个答案:

没有答案