Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Epic Link value is stopping linked Issue field validation?

Suresh December 12, 2017

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.")
}
}

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events