删除具有重复标题的问题(或更改其状态)

Delete issues with duplicate title (or change their State)

我创建了一个新的邮箱集成,它在我的项目中产生了新问题。 我想避免重复的问题,比如:

rule Delete duplicate issues after being added automatically with a To check State

when State == {To check} {
 //check all issues in the Project
 //check if there is an issue with the same Title {
  State = Archived; // or delete the Issue
 }
}

可以吗?

我注意到 Youtrack 会自动设置一个新问题,其标题和描述与 related to 现有问题相似。
所以我创建了一个新规则

rule Delete duplicates in Board

when Stage == {To Check} && issue == relates to {
 applyCommand("delete");
}