Bulk change issues to other type with checklist custom field gives error

When I try to bulk move issues (even when I select one issue) to another project, the bulk move fails with:
2014-12-02 10:04:57,658 http-bio-8080-exec-23 INFO UserName 604x2393673x1 ypsaom 10.100.18.97,127.0.0.1 /secure/views/bulkedit/BulkMigratePerform.jspa [jira.bulkedit.operation.BulkMigrateOperation] Performing move for project VFI_TRM issue type: Defect
2014-12-02 10:04:57,768 http-bio-8080-exec-23 ERROR UserName 604x2393673x1 ypsaom 10.100.18.97,127.0.0.1 /secure/views/bulkedit/BulkMigratePerform.jspa [jira.bulkedit.operation.BulkMoveOperationImpl] An exception occured while moving 'VXPC-542' : Index: 0, Size: 0. Rolling back the operation
2014-12-02 10:04:57,768 http-bio-8080-exec-23 ERROR UserName 604x2393673x1 ypsaom 10.100.18.97,127.0.0.1 /secure/views/bulkedit/BulkMigratePerform.jspa [action.issue.bulkedit.BulkMigrate] Error while performing Bulk Edit operation.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.okapya.jira.customfields.ChecklistItemChanges.generateItemsComments(ChecklistItemChanges.java:66)
at com.okapya.jira.customfields.ChecklistItemChanges.getNewItemsComments(ChecklistItemChanges.java:51)
at com.okapya.jira.customfields.ChecklistCFType.getChangelogValue(ChecklistCFType.java:381)
at com.okapya.jira.customfields.ChecklistCFType.getChangelogValue(ChecklistCFType.java:40)
at com.atlassian.jira.issue.fields.CustomFieldImpl.getChangelogValue(CustomFieldImpl.java:444)
at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:506)
at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:466)
at com.atlassian.jira.bulkedit.operation.BulkMoveOperationImpl.moveIssueDetails(BulkMoveOperationImpl.java:1095)
at com.atlassian.jira.bulkedit.operation.BulkMoveOperationImpl.moveIssueInsideTxn(BulkMoveOperationImpl.java:265)
at com.atlassian.jira.bulkedit.operation.BulkMoveOperationImpl.moveIssuesAndIndex(BulkMoveOperationImpl.java:183)
at com.atlassian.jira.bulkedit.operation.BulkMigrateOperation.perform(BulkMigrateOperation.java:59)
at com.atlassian.jira.web.action.issue.bulkedit.BulkMigrate.doPerform(BulkMigrate.java:264) <+3>

 

I found out that this problem is related to a checklist custom field which was not present on the original issue type, but is present on the new issue type. When I move the issues manually, the move goes ok, but when moved in bulk change, I get this error. My workaround was to add the checklist custom fields to the issue types of the original issues. 

Our Checklist version is: 2.0.0.

4 answers

This widget could not be displayed.

No, not yet and no reaction from okapya as well. But I found a workaround myself, by adding the checklist fields also on the original issue. This is not always an acceptable workaround however.

This widget could not be displayed.

I am also having this problem. Did you get a solution? 

This widget could not be displayed.

Oh that workaround will actually work in my case. Thanks for the tip!

 

This widget could not be displayed.

This should now be fixed in version 2.1.0.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

459 views 3 17
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you