Defect #42967
closedFields marked as Read-only in a Tracker against a status , disappears from the screen instead of disabling the edit to the filed
0%
Description
I have created an issue tracker where I want to disable the field updated during issue creation to be disabled but shown to the user taking the issue forward. I have provided all view rights and permissions to all roles.
All fields in field permissions across all trackers follow the same behaviour. I have checked all permission for the Role and the custom field views for all roles. Everything seems to be in place.
Updated by Dhruti Patel about 2 months ago
Basis the review of an earlier defect Defect #41247 response provided to user
Redmine applies the most-open rules for fields permissions to users.
If a user has multiple roles in a project, they can edit the field if any of the roles allows editing the field. Similarly, they can leave the field unset if any of the user's roles does not enforce the field to be required.
h3.
(the user I have created has only one role: Tester)
Please check all of the roles for the user in the project. If you still observe the issue, please provide detailed information about the roles of the user in the project, details about the fields permission settings for all of these roles, as well as details about the specific issue (given that the permissions are specific to a specific tracker and status).
I have created a field: Origin/ type which is made visible to
- all roles
- selected trackers
- all projects
I have created users which are mapped to a single role only
Under Roles & Permission for Tester (as a Role) mapped to Tester as a User:
Against the Issue Tracker I have marked View/ Add/ Edit Issues as Yes
In the Workflow definitions for the Role Tester; Under the Issue Status In Progress (Open--In Progress); I have marked the field Origin/Type as Read Only, since I do not want the user to change the field while working on the Issue.
The Issue is created by a separate user (Admin) and assigned to Tester. When the tester selects the Issue in the In Progress state the field Issue/ type disappears from the screen; instead of being in disabled mode.
Updated by Dhruti Patel about 2 months ago
Environment Details
nvironment:
Redmine version 6.0.5.stable
Ruby version 3.3.7-p123 (2025-01-15) [x86_64-linux-gnu]
Rails version 7.2.2.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.5
Git 2.48.1
Filesystem
Redmine plugins:
custom_tables 1.1.1
periodictask 6.0.0
redmine_charts_plugin 1.0.0
redmine_custom_workflows 3.0.1
redmine_email_login 0.0.4
Updated by Holger Just about 2 months ago
- Status changed from New to Needs feedback
Read-only fields are not included in the form to create or edit issues. These fields are only rendered in the displayed issue, i.e. the yellow box on top of the issue.
Thus, the contents of your custom field should be shown in the yellow issue box for "In Progress" issues but not in the issue update form.
Updated by Dhruti Patel about 2 months ago
Thanks for the update.
Request if you can share some examples of how to define trackers to indicate segregation between display and update sections.
Updated by Dhruti Patel about 2 months ago
Able to get the resolution.
All fields would be visible to the user as read only in the displayed issue, however when the user selects edit only those fields that are marked editable would be available for edit.
Thanks.
Updated by Holger Just about 2 months ago
- Status changed from Needs feedback to Closed
- Resolution set to Invalid
Thanks for the feedback. I'm glad everything is working as it is intended to.