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 !
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!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.