Defect #37229

Ignore workflow transitions that already defined and now is not appliable

Added by salman mp 2 months ago. Updated about 1 month ago.

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

0%

Category:Issues workflow
Target version:-
Resolution: Affected version:

Description

Suppose some workflow transitions defined for one role. Then if permissions of add_issues and edit_issues removed for that role, Admin can see their transitions related statuses as allowed new statuses, when editing an issue.
There is no way to remove that transitions (except adding permission of add/edit to role temporarily), because in workflow transition edit page, only roles that can add and edit issues are listed.

issues.patch Magnifier - filter roles that can add/edit issues as Admin roles instead of all roles (659 Bytes) salman mp, 2022-06-09 13:10

History

#1 Updated by Go MAEDA about 1 month ago

  • Tracker changed from Patch to Defect
  • Status changed from New to Confirmed

salman mp wrote:

There is no way to remove that transitions (except adding permission of add/edit to role temporarily), because in workflow transition edit page, only roles that can add and edit issues are listed.

Confirmed the issue.

Here are the steps I tried:

1. Load the bundled test fixture by running `bin/rails db:fixtures:load`
2. Remove "Add issues" and "Edit issues" permission from "Manager" role
3. Go to /workflows/edit page. "Manager" does not appear in "Role" drop-down

Also available in: Atom PDF