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

Moving an issue from one issue type to another throws NullpointerException if the Request participants field is filled in

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 4.20.0, 4.13.11, 4.19.1
    • 4.19.0, 4.13.10, 4.18.2
    • Issue View
    • None

      Issue Summary

      When we move an issue from one Issuetype to another, the below error is thrown if the Request participant field is filled in. If there is no Request participants fields, the move is successful.

      Steps to Reproduce

      1. Create a service management project
      2. Create an issue and add Request participant
      3. Try to move the issue to another issuetype

      Expected Results

      • Issue is moved successfully

      Actual Results

      • The below error is thrown >

      The below exception is thrown in the atlassian-jira.log file:

      2021-08-25 14:30:19,483+0530 http-nio-41310-exec-11 ERROR      [o.a.c.c.C.[.[localhost].[/j81310].[action]] Servlet.service() for servlet [action] in context with path [/j81310] threw exception [java.lang.NullPointerException] with root cause
      java.lang.NullPointerException
      	at com.atlassian.servicedesk.internal.customfields.participants.ParticipantsCFType.getProject(ParticipantsCFType.java:328)
      	at com.atlassian.servicedesk.internal.customfields.participants.ParticipantsCFType.validateFromParams(ParticipantsCFType.java:290)
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.needsMove(ImmutableCustomField.java:1103)
      	at com.atlassian.jira.web.action.issue.MoveIssueUpdateFields.doDefault(MoveIssueUpdateFields.java:73)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      	at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      	... 2 filtered
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
      	... 7 filtered
      
      

      Workaround

      The only workaround is to remove the Participants, move the issue and re-add the participants.

      A simple option to perform this is to configure an automation rule to remove request participants on issue creation and add a comment with the names of participants which can then be added back after moving the issue.

            [JSDSERVER-8661] Moving an issue from one issue type to another throws NullpointerException if the Request participants field is filled in

            Rob made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 662582 ]
            Alex Cooksey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 659308 ]
            KellyW (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 601916 ]
            Ryan Brailey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 601916 ]
            Rodrigo Rosa made changes -
            Fix Version/s New: 4.20.0 [ 96191 ]
            Artur Moura (Inactive) made changes -
            Comment [ A comment with security level 'atlassian-staff' was removed. ]
            Bill Mackintosh made changes -
            Comment [ Does 8.19.2 fix this issue? I'm looking at the release notes but don't see this issue attached to it.  TIA! ]
            Sam Xu made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 1016 New: 1124
            Bugfix Automation Bot made changes -
            Support reference count Original: 26 New: 28

              jxu2@atlassian.com Sam Xu
              sthottamkara@atlassian.com Sandhya Thottamkara
              Affected customers:
              31 This affects my team
              Watchers:
              77 Start watching this issue

                Created:
                Updated:
                Resolved: