Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13502

Sub-task creation fails when browse project permission is give to CurrentAssignee, GroupCF or UserCF

    XMLWordPrintable

Details

    Description

      When Browse Project permission is given to Current Assignee, GroupCF or UserCF and nothing else - creation of Sub-tasks fails with a NullPointer.

      The problem occurs when trying to set the project of the dummy issue used for sub-task creation. It tries to set it to the currently selected project. The problem is that the issuecreate flag is set to true, and the above permissions return false. Therefore, the issue does not have a project set and when the IssueType field tries to populate its options, it dies with a NullPointer.

      The fix may be as simple as overriding the getProject() method in CreateSubTaskIssue, and retrieving the project based on the passed in parentIssueId, rather than using the currentProject.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nick.menere Nick Menere [Atlassian] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: