Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15194

Bulk update of issues to change value in assets custom field fails

    XMLWordPrintable

Details

    Description

      Issue Summary

      Bulk update of issues to change Assets customfield value fails, if the assets custom field configuration has an AQL in the "Filter Issue Scope (AQL)".

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create an Assets schema, with a new object type, and add some 4-5 objects to it
      2. Create an assets custom field with configuration as below.
      3. Associate this custom field with a project and add it to the create and view screens.
      4. Create 2 new issues in Jira project, and add value to this Assets custom field. 
      5. Fetch the issues as below, and perform a bulk change to edit both issues together.
         
      6. Select a new value in the drop-down of the assets custom field. 
      7. Hit "Next"

      Expected Results

      We go to the next page without any issue and the issues are all updated with new assets object.

      Actual Results

      There is an Error in the UI with a 500 Error code.

      The below exception is thrown in the xxxxxxx.log file:

      2024-03-20 12:46:58,548+0000 http-nio-8080-exec-2 url: /jsm/internal-error ERROR      [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=53ca7afc-d583-4b08-9b43-375c641f3bc9, interpretedMsg=, cause=java.lang.NumberFormatException: For input string: "", stacktrace=java.lang.NumberFormatException: For input string: ""
          	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) [?:?]
          	at java.base/java.lang.Long.parseLong(Long.java:702) [?:?]
          	at java.base/java.lang.Long.valueOf(Long.java:1144) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.fields.RequestFieldIssueRepresentation.getOptions(RequestFieldIssueRepresentation.java:146) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.fields.InsightJiraFieldManagerImpl.getCustomerFieldValues(InsightJiraFieldManagerImpl.java:178) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.fields.InsightJiraFieldManagerImpl.replacePlaceholders(InsightJiraFieldManagerImpl.java:358) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.fields.InsightJiraFieldManagerImpl.replacePlaceholdersFromIql(InsightJiraFieldManagerImpl.java:271) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.customfield.DefaultObjectCustomField.getIqlWithPlaceHolderSubstitution(DefaultObjectCustomField.java:815) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.customfield.DefaultObjectCustomField.getIssueScopeIql(DefaultObjectCustomField.java:809) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.customfield.DefaultObjectCustomField.getcustomFieldScopedIql(DefaultObjectCustomField.java:855) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.customfield.DefaultObjectCustomField.isValidObjectBeanScope(DefaultObjectCustomField.java:872) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.customfield.DefaultObjectCustomField.determineObjectBean(DefaultObjectCustomField.java:758) [?:?]
          	at com.riadalabs.jira.plugins.insight.services.jira.customfield.DefaultObjectCustomField.validateFromParams(DefaultObjectCustomField.java:590) [?:?]
          	at com.atlassian.jira.issue.fields.ImmutableCustomField.validateParams(ImmutableCustomField.java:713) [classes/:?]
          	at com.atlassian.jira.web.action.issue.bulkedit.BulkEdit.validateInput(BulkEdit.java:353) [classes/:?]
          	at com.atlassian.jira.web.action.issue.bulkedit.BulkEdit.doDetailsValidation(BulkEdit.java:254) [classes/:?]
      

      Workaround

      • Remove the AQL from Filter Issue Scope (AQL) of the assets configuration, if it is not dependent on any other fields of the issue. Add the same to AQL to "Filter Scope (AQL)".
      • If the AQL from "Filter Issue Scope (AQL) " is needed, then the issues need to edited individually.

      Attachments

        1. AssetsCustomField_config.png
          AssetsCustomField_config.png
          112 kB
        2. Edit_CF_in_Bulk_issue_screen.png
          Edit_CF_in_Bulk_issue_screen.png
          133 kB
        3. ERROR_screen_in_UI.png
          ERROR_screen_in_UI.png
          572 kB
        4. Search_issues_screen.png
          Search_issues_screen.png
          163 kB

        Issue Links

          Activity

            People

              c8bcca445054 Benjamin Suess
              1463fcb5e3fd Sireesha
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync