I want this script to run on all issues that are NOT of the Initiative type.
How can I say in the if & else statements to only do these things if the issue type is not Initiative.
I tried
def issueTypeField = GetFieldByName("Issue Type")
def issueType = issueTypeField.getValue()
if (parent link == null && issueType != "Initiative")
but that didn't work... any help?
//parent link
def parentLinkField = getFieldByName("Parent Link")
def typeOfWorkField = getFieldByName("Type of Work")
def parentlink = parentLinkField.getFormValue()
if (issueContext.issueType.name == "Initiative") {
typeOfWorkField.setRequired(false)
typeOfWorkField.setHidden(false)
}
else if (issueContext.issueType.name !== "Initiative" && parentlink == null ) {
typeOfWorkField.setRequired(true)
typeOfWorkField.setHidden(false)
}
else if (issueContext.issueType.name != "Initiative"){
typeOfWorkField.setRequired(false)
typeOfWorkField.setHidden(true)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.