I am trying to automatically change the type of link ('Blocks' -> 'Relates') between two tickets when one of them is set to Done. This is so that I can tell when blockers from other projects are no longer an issue.
The logic below gets us very close, but there is a problem on the final step. There is no option to change the specific link between the two tickets. So I am creating a 'Relates' link between the two first, before trying to remove the original link.
Unfortunately, it removes ALL links of the 'Blocks' type, not just the one between these two tickets. Other Blockers are also removed which wont do.
Any way I can change the link type directly at the trigger issue? or avoid bulk changes by link type?
