プロジェクト

全般

プロフィール

Vote #81436

未完了

Adding new project impossible with mandatory custom field of type users

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
0
issue_org_id:
35224
author_id:
518481
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
162
ステータス-->[New]

説明

Redmine: 4.1.2
Rails: 5.2.4.4
PostgreSQL: 12.5
No Plugins

I was just hit by this issue, kind of a logical bug:

I cannot add a new project if there is a mandatory custom field with a user
drop-down list, since there are no users initially--but I cannot add users
unless the project has been created...

To reproduce:

  • Add a custom field to projects
  • Field type: Users
  • Make the field mandatory
  • Try to add a new project

Expected behaviour:

  • Find a prefilled list of users in the drop down
  • Able to submit (create new project)

Current behaviour:

  • User list is empty (possibly because the project has no users?)
  • Toggling inheritage of users does not help
  • Cannot submit project because the custom field is still empty but mandatory

Workaround:

  • Make custom field optional
  • Add project (with empty user selection)
  • Add users to the project
  • Edit project again and select user from drop down list

Am I missing something trivial?

Thanks


journals

Marc Cramer wrote:
> Expected behaviour:
>
> - Find a prefilled list of users in the drop down
> - Able to submit (create new project)
>
> Current behaviour:
>
> - User list is empty (possibly because the project has no users?)
> - Toggling inheritage of users does not help
> - Cannot submit project because the custom field is still empty but mandatory

I agree that there is a problem with the current behavior as you pointed out, but if the behavior changed as above, the project will be created with the required custom field blank. This means that fixing this "bug" makes another bug.

--------------------------------------------------------------------------------
Go MAEDA wrote:
> Marc Cramer wrote:
> > Expected behaviour:
> >
> > - Find a prefilled list of users in the drop down
> > - Able to submit (create new project)
> >
> > Current behaviour:
> >
> > - User list is empty (possibly because the project has no users?)
> > - Toggling inheritage of users does not help
> > - Cannot submit project because the custom field is still empty but mandatory
>
> I agree that there is a problem with the current behavior as you pointed
> out, but if the behavior changed as above, the project will be created with
> the required custom field blank. This means that fixing this "bug" makes
> another bug.

Yeah, right... Maybe we should then distinguish a bit:

I can imagine a lot of cases (like mine) where it makes sense to select a user
from the drop-down list that is just *any* existing user and *unrelated* to
the users being assigened to the project.

So, it sounds like this issue is direcing us towards a RFE to have a custom
field type like 'project member' vs. 'any user'.

In my case I'd need something like a drop-down for 'any user'.

Does that make sense to you?

--------------------------------------------------------------------------------
Ok, can we move this into the Open Features list then somehow?

Summary: Custom field 'users' should be split into 'users (project members)' and 'users (all)'
since a mandatory user drop-down prevents from adding new projects because there are no users
yet.

--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリProjects_11 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0