Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Copy the reporter and watchers on duplicate issues

Table of Contents
 


Info
titleRequired plugins
You will need the following JIRA plugins:
  1. JJUPIN

Level:  BASIC

...

This is done in SIL in the following way:

 


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 the postfunction on the transition 'Resolve issue' and that's all.