Issue #1:
Unable to Move "Story" or "Dependency" to "Defect" on same project.
Technical details
Log's referral number: 3ed28fec-29a8-4c00-9583-f8524b3e6ea2
Referer URL: *https://jira.davita.com/secure/MoveIssueUpdateFields!default.jspa?id=584738&assignee=null*
Assertion failed: assert issue.projectId // Missing projectId in fieldValues | | | null com.atlassian.jira.issue.IssueImpl@7e73d642 (toString() == null)
Assertion failed: assert issue.projectId // Missing projectId in fieldValues | | | null com.atlassian.jira.issue.IssueImpl@7e73d642 (toString() == null) at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:415) [?:?] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:670) [?:?] at com.onresolve.scriptrunner.canned.jira.fields.editable.TemporaryIssueService.populateForCreation(TemporaryIssueService.groovy:78) [?:?] at com.onresolve.scriptrunner.canned.jira.fields.editable.TemporaryIssueService$populateForCreation.call(Unknown Source) [?:?] at com.onresolve.scriptrunner.runner.field.IssueParametersCapturingImmutableCustomField.validateParams(IssueParametersCapturingImmutableCustomField.groovy:85) [?:?] at com.atlassian.jira.web.action.issue.MoveIssueUpdateFields.doValidation(MoveIssueUpdateFields.java:192) [classes/:?]
Issue#2
Unable to move "dependency" to "defect" on same project.
Log's referral number: 87a3e369-a852-4802-9be4-0df6796ba6c2
Referer URL: *https://jira.davita.com/secure/MoveIssueUpdateFields!default.jspa?id=565696&assignee=null*
Assertion failed: assert issue.projectId // Missing projectId in fieldValues | | | null com.atlassian.jira.issue.IssueImpl@5bf5a41c (toString() == null)
Assertion failed: assert issue.projectId // Missing projectId in fieldValues | | | null com.atlassian.jira.issue.IssueImpl@5bf5a41c (toString() == null) at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:415) [?:?] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:670) [?:?]
Could you show us the script?
Hello @Nic Brough -Adaptavist-
How do we determine which script is causing this error? Also while moving the issue would that use create screen or edit screen?
We have no scripted fields in create screen but we do have 4 to 5 scripted fields in edit and view screen so would like to know which field must be causing this to provide you the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to look at how you are doing this "move" to see where a script might be being used.
I had assumed you were running a script (and hence knew where it was) because you only gave us errors implying it was a problem in a script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have just used "move" option on the story issue that needs conversion wherein I choose destination project and issue type as bug and then fill in mandatory fields in "update fields" tab and submit and I get those errors.
I did notice that Update fields tab has lot more different fields that create screen in bug issue doesn't have and we have some validators for creating bug where those fields were displayed while manually creating issue but they were missing in update fields tab while moving the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, my guess (as there's not enough of the error logs to be sure, but maybe enough from the pointers you have expanded on) is that you have a scriptrunner scripted field in the new issue that either
I would start with a look through the list of all your custom fields, looking for scripted fields and noting the ones that are valid for your target project and issue type, and then have a look at the scripts behind each one
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.