In an onChange workflow, how can I get the previous values of the issue links?

I'm trying to restrict the conditions under which users may move issues between different parents. But inside a workflow, I seem to only have access to the new value of ctx.issue.links, which is the value the user is trying to save. Is there a way to get the previous values, similar to fields.oldValue?

0
2 comments

Hi!

You can use links[“subtask of”].removed. You can find an example for issue.links['parent for'].added (which is basically the opposite for .removed, but it works in a similar way) here.

1

Please sign in to leave a comment.