You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
When Epic Link has some value, following validation is working, if the Epic Link is empty then validation is failing.
We are validating against to the ('Linked Issues') -->Issue (multi select dropdown) not on Epic Link
Not sure I am calling from correct linked object?
def request = ActionContext.getRequest()
def params = request.getParameterMap()
def issueLinkingValue = linksSystemField.getRelevantParams(params) as IssueLinksSystemField.IssueLinkingValue
def linkedIssue = it.destinationObject
for(link in issueLinkingValue.getLinkedIssues()){
def object = ComponentAccessor.getIssueManager().getIssueObject(link)
cf1Value= (Option)object.getCustomFieldValue(featureType)
if(cf1Value.getValue() != "High Pack"){
throw new InvalidInputException(IssueFieldConstants.ISSUE_LINKS,
"Note: When Cause equals 'HighPack'. You must link only High Pack.")
}
}