Project

General

Profile

Subject Field - Required

Added by James H about 10 years ago

Hello,

We are trying to set up Redmine for one of our teams and they have no use for the subject line for their issue tracker and the existence of the subject field in the issues is a problem for them.

Ideally, we would like to be able to set the "required" settings so that the subject field can set to be required or not depending on the issue tracker. Identical to the way the custom fields are made and behave, but for non-custom fields as well (i.e. subject).

What I have tried is:
go into "field permissions" in workflow settings and set the "subject" field to "read-only" and this causes problems, especially at the creation of a new issue because the subject field is naturally "required" by Redmine and setting the "read-only" setting in "field permissions" just causes the subject field to disappear without any change in behavior; as in the subject field is still being "required" by the page/form but now there is no way to input it due to the "read-only" setting.

What I would like to know:
Where in Redmine's files or code does it reference the subject field's "required" property/flag?
I would like to find the "variable" or bit of code that is responsible for this and either set the subject field as "not required" or stop the code from looking for a valid entry in that field.

I was hoping that Redmine would keep this in the database like it does with the custom fields, but it seems like it doesn't.

Any assistance?

- Redmine
2.4.x
- Ruby implementation and version
ruby 1.9.3p484
- Rails version (rails --version)
rails 3.2.16
- Operating system (precise if you're using cygwin when running on Windows)
win 7
- Database used, and its version
mysql 5.6
- Ruby-aware server used: Webrick, Mongrel, Thin, etc. If you don't understand this point, you're using Webrick.
Thin


Replies (4)

RE: Subject Field - Required - Added by James H about 10 years ago

maybe someone wants to point out how redmine inherently requires the subject line due to other system dependencies? (if it is)
or maybe nobody knows...?

maybe someone wants to confirm my suspicion that the field permissions features are "bugged" and might require a "defect"? I dont want to post a "defect" about it and then have it instantly closed without anyone asking me any details about it at all.

RE: Subject Field - Required - Added by Voranc Kutnik over 9 years ago

Hi!

I also have a problem with Required fields in Workflow -> Field Permissions. This functionality of Required fields is not working at all!
Whatever I set in Workflow -> Field Permissions, the fields are never required when I change the status of the issue.

So, if anybody knows if this functionality (required fields for different issue statuses) should work and HOW it should work I will be really happy if you could let me know.

My environment:
Redmine version 2.4.2.stable.12490
Ruby version 1.9.3-p545 (2014-02-24) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2

Cheers,
Voranc

RE: Subject Field - Required - Added by Voranc Kutnik over 9 years ago

One more information that I forgot to mention before...I'm talking about Custom Fields. So, functionality of required fields is not working for Custom Fields.

Cheers,
Voranc

RE: Subject Field - Required - Added by Voranc Kutnik over 9 years ago

OK, the issue #12146 explains what is the reason (and workaround) for my problem.

Cheers,
Voranc

    (1-4/4)