Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-603

Copy project script fails - all worked except last Dashboard

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 4.3.15
    • Fix Version/s: 5.0.11
    • Component/s: None
    • Labels:
    • Environment:

      JIRA 6.3.4 Tomcat standalone on linux
      JIRA 7.*

    • Sprint:
      Sprint 29 - Ends 10 May, Sprint 30 - Ends June 20, Sprint 31 - Ends June 27
    • Critical Points:
      0.7

      Description

      Error during copy project, Included versions, components, filters, dashboards. All were copied including the 20 filters, as was one dashboard but not the second dashboard.

      java.lang.NumberFormatException: For input string: "project-10951" at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$_convertProjectFilterStrings_closure11.doCall(CopyProject.groovy:677) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.convertProjectFilterStrings(CopyProject.groovy:661) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.this$dist$invoke$1(CopyProject.groovy) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.methodMissing(CopyProject.groovy) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.invokeMethod(CopyProject.groovy) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$_2_consume_closure1_closure2.doCall(CopyProject.groovy:647) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$_2_consume_closure1.doCall(CopyProject.groovy:645) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.consume(CopyProject.groovy:644) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.consume(CopyProject.groovy) at com.atlassian.jira.util.collect.TransformingEnclosedIterable$1.consume(TransformingEnclosedIterable.java:33) at com.atlassian.jira.util.collect.CollectionUtil.foreach(CollectionUtil.java:44) at com.atlassian.jira.util.collect.CloseableIterator$Functions.foreach(CloseableIterator.java:58) at com.atlassian.jira.ofbiz.DatabaseIterable.foreach(DatabaseIterable.java:44) at com.atlassian.jira.util.collect.TransformingEnclosedIterable.foreach(TransformingEnclosedIterable.java:29) at com.atlassian.jira.util.collect.EnclosedIterable$foreach.call(Unknown Source) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.copyDashAndFilters(CopyProject.groovy:624) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$copyDashAndFilters$1.callCurrent(Unknown Source) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.doCopyProject(CopyProject.groovy:562) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$doCopyProject$0.callCurrent(Unknown Source) at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.doScript(CopyProject.groovy:278)

      Related: If you turn off Dashboard and filter sharing as described in https://confluence.atlassian.com/jirakb/how-to-remove-the-everyone-share-option-from-filters-301663662.html, then Dashboards and Filters won't be created, as they're all shared with the "EVERYONE" group by default. Copy Project needs to handle this case better, allowing users to select a group to share all Dashboards and such with, and possibly sharing with the jira-administrators group or similar as a fallback.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcarter Jonny Carter
              Reporter:
              pmanildi Paula Manildi
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: