...
Info | ||
---|---|---|
| ||
Power Scripts Scripts™ for Jira (server) Level: BASIC |
...
Writing the code
This is done in SIL 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 and that's all.
See also
- Block 'Close' Transition Until All Subtasks are Closed
- Create an issue of a certain issue type when there is no Create permission
- Forbidding specific priorities for certain projects
- Restricting resolutions based on issue type
- Restrict sub-tasks based on Issue Type