我想将 YouTrack 用于 Key-Account-Management。
有一个 Epic,每个关键帐户(客户)有一个子问题。
我想大约每 6 个月与每个关键客户交谈一次。
有没有办法将问题隐藏或暂停一段时间。
问题应该像解决几个月一样,然后如果贪睡时间已过,就会回来。
如何使用youtrack做到这一点?
最佳答案
The issue should be like resolved for some months
似乎可以简单地解决问题来完成它。
棘手的部分是在 6 个月内自动重新打开它们。以下workflow rule可以通过计时器重新打开 YouTrack 问题:
var entities = require('@jetbrains/youtrack-scripting-api/entities');
var workflow = require('@jetbrains/youtrack-scripting-api/workflow');
exports.rule = entities.Issue.onSchedule({
title: workflow.i18n('Reopen issues in 6 months'),
search: '#Resolved', // Narrow the search to specify which issues are affected
cron: '0 0 0 ? * * *', // Fires once a day
guard: function(ctx) {
// If an issue was in a resolved state for half a year already...
return Date.now() - ctx.issue.resolved < 15552000000;
},
action: function(ctx) {
// ... then reopen it
ctx.issue.State = ctx.State.Open;
},
requirements: {
State: {
type: entities.State.fieldType,
Open: {}
}
}
});
关于youtrack - 在 YouTrack 中隐藏/暂停问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56292398/