Hello Adaptavist,
I having a wired situation here with linking (inwardLinks). I get the error
We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.
I check the logFiles too and there is no useful info.
When i change the linkType to outwardlinks its working fine! is this some kind of bug ?
Can some one please assist ? Script runner version 5.8.0-p5
import com.atlassian.jira.component.ComponentAccessor
//import org.apache.commons.lang3.StringUtils
//import com.onresolve.jira.groovy.user.FormField
final issuePickerFieldName = "VersionSnap"
def issuePickerField = getFieldByName(issuePickerFieldName)
def issuePickerFieldValue = issuePickerField.value
if (!issuePickerFieldValue) {
return
}
def relatedIssue = ComponentAccessor.issueManager.getIssueByCurrentKey(issuePickerFieldValue as String)
if (relatedIssue != null)
{
getFieldById('issuelinks-linktype').setFormValue('has parent').setReadOnly(true)
getFieldById('issuelinks-issues').setFormValue(relatedIssue.key).setReadOnly(true)
}
else{
getFieldById('issuelinks-linktype').setFormValue('has parent').setReadOnly(true)
getFieldById('issuelinks-issues').setFormValue(relatedIssue.key).setReadOnly(true)
}
Kind regards,
Moses
So tried it in DEV environment - Script runner Version 6.16.0 it is working perfect ! interesting !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.