The updating of the field value is working when there's no condition involved.
Unfortunately, it doesn't work when it has.
This is my current code.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.IssueLink
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue;
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
issueLinkManager.getOutwardLinks(issue.id).any{it.destinationObject.getProjectObject().getKey()== 'PROJECT NAME'}
Thanks!
issue.getProjectObject().getKey() returns the key of the project, not the name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.