Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Problem
Yet another small trick to make your user's life bearable: when When developers close an issue with a resolution duplicate, you should normally copy the watchers and the reporter to the original issue.you should normally want to copy the watchers and the reporter to the original issue.
Solution
WritingWrite the code
This is done in SIL™ in Enter the following way:SIL™ code.
Code Block |
---|
string u; number n=0; n=size(fieldHistory(key, "Link")); if (n>0 and resolution=="Duplicate") { string dKey=getElement(fieldHistory(key, "Link"),n - 1); // history %dKey%.watchers=addElementIfNotExist(%dKey%.watchers, reporter); for (u in watchers) { %dKey%.watchers=addElementIfNotExist(%dKey%.watchers, u); } } |
You just need to put this on Next, add this code to the post function on the transition Resolve issue and that's all transition.
Table of Contents |
---|