Inside a workflow how would I know if a link to another issue, has been added or removed?

I was hoping the ctx.issue.isChanged('links) would work, but I get an exception:

Cannot resolve property Issue.links in project

Is there any easy way to find out, or I have to iterate over ALL my link types (maybe some additional custom ones, too) to see if each one has had any changes?

0
1 comment
Official comment

Hello,

I am afraid, the isChanged method cannot be used for links. So, the only possible way to check if any issue link was added or removed is iterating for each link type and getting the `ctx.issue.links[type].added` and `ctx.issue.links[type].removed` properties. 

Should you have any further questions, feel free to contact us.

Please sign in to leave a comment.