Defect #37685

Show project field in Issue create form when project_id is not permitted field

Added by salman mp 10 days ago. Updated 7 days ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Issues workflow
Target version:4.2.8
Resolution: Affected version:4.2.7


When project_id marked as readonly in workflow/permissions for a role say role1, if a user with role1 try to create an issue in a leaf project, everything is ok. But if that user try to create new issue in a project that has some subprojects, that projects was shown in issue creating form.

dont_show_projects_when_not_allowed_in_workflow_permissions.patch Magnifier (1.26 KB) salman mp, 2022-09-18 16:52

test_global_new_issue_and_hierarchy_projects_new_issue.patch Magnifier (1.72 KB) salman mp, 2022-09-20 16:56

test_global_new_issue_and_hierarchy_projects_new_issue.patch Magnifier - fix mistake in function name (1.72 KB) salman mp, 2022-09-20 18:35


#1 Updated by Mischa The Evil 10 days ago

Can you add some test coverage for this change? For it, you can check out these relevant references:

Thanks in advance.

#2 Updated by salman mp 8 days ago

I have no experience in writing tests, but I hope these two tests can show that cases.

#3 Updated by salman mp 8 days ago

second test function's name was wrong and this file fixed that.

#4 Updated by Go MAEDA 7 days ago

  • Category set to Issues workflow
  • Status changed from New to Confirmed

#5 Updated by Go MAEDA 7 days ago

  • Target version set to 4.2.8

Setting the target version to 4.2.8.

Also available in: Atom PDF