Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
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.