Project

General

Profile

Actions

Defect #29300

open

New issue can't select read-only tracker

Added by Pavel Rosický over 5 years ago. Updated over 3 years ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Issues workflow
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I have 2 trackers, default and read-only
1/ go to New issue
2/ select the read-only tracker (the field disappears and can't be changed anymore)
3/ after sumbitting issue has the default tracker

desired behaviour:
it should be possible to create a new issue with a read-only tracker. It can by done via api and later on the edit form.

related: #19162


Files

issues_controller_test.rb.patch (518 Bytes) issues_controller_test.rb.patch Pavel Rosický, 2018-07-30 21:01
_form.html.erb.patch (724 Bytes) _form.html.erb.patch Pavel Rosický, 2018-07-30 21:01
new_issue.png (16.9 KB) new_issue.png Pavel Rosický, 2018-08-05 06:46
workflow.png (50 KB) workflow.png Pavel Rosický, 2018-08-05 06:46

Related issues

Related to Redmine - Defect #34778: Inconsistencies working with workflow permissionsConfirmed

Actions
Actions #1

Updated by Go MAEDA over 5 years ago

Would you explain what "read-only tracker" means?

Actions #2

Updated by Pavel Rosický over 5 years ago

It's on the workflow page. For a given role and status you can choose that the tracker is read-only. It means it can't be changed afterwards if these conditions are met (status + role). See screens.

This works with existing issues on the edit page. However when creating the issue, there is no option to select the tracker. The select box will be hidden if I choose a tracker like this and I also can't change it back without refreshing the whole page. Even if I choose a read-only tracker (the select box disappers) and hit the confirm button, the issue I've just created has a different tracker, not the one I've just chosen.

On a new form, tracker_id attribute isn't part of the request, there isn't any select box or a hidden field, so the default tracker is chosen instead. I can do the same request via api [POST /issues?issue[tracker_id]=x] and I can choose a read-only tracker this way. It also can be done in gui but only after the issue is created on the edit form, this behaviour isn't unified.

current behaviour - issues/new (wrong)

default -> read-only - the select-box disappears
read-only -> default - once I've selected a read-only tracker I can't change it back

desired behaviour:

default -> read-only
read-only -> default - I can choose between them and the issue will be created with that tracker

current behaviour - issues/[id]/edit: (correct)

default -> read-only - the select-box won't disappear
read-only -> default - I can change it back before saving
(saved)read-only -> default - I can't change it because workflow conditions are met. The current read-only tracker is the only one available.

btw: it makes the test in #19162 partly obsolote, because after my patch the tracker_id select-box will always be visible on a new form.

Actions #3

Updated by Go MAEDA over 3 years ago

  • Tracker changed from Patch to Defect
  • Status changed from New to Confirmed
Actions #4

Updated by Go MAEDA over 2 years ago

  • Related to Defect #34778: Inconsistencies working with workflow permissions added
Actions

Also available in: Atom PDF