-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
Issue Summary
Attempting to set a workflow property to control Projet permission for the Archive Issue Permission. For example via:
- jira.permission.archive.denied = denied
- jira.permission.archive.user = username_to_allow
- jira.permission.archive.group = administrators
- jira.permission.archive.group.1 = jira-developers
- jira.permission.archive.group.2 = jira-editors
- jira.permission.archive.projectrole" = 10001
Root cause
When the Archive issue feature was added, we did not add the appropriate entry within the Jira API Project Permission definition to allow the get "Short Name" method of ProjectPermissions.java to resolve the ARCHIVE_ISSUES project permission
Therefore, calls to systemProjectPermissionKeyByShortName() (which is used by Workflow Properties to specify which project permission it is) does not know which permission to use for "archive", therefore, we are not able to specify a workflow property to disallow archiving at a particular workflow step.
Notes:
- See ARCHIVE_ISSUES implemented in the project permission jira-components/jira-core/src/main/java/com/atlassian/jira/plugin/permission/ProjectPermissionModuleDescriptorImpl.java
- But not implemented on the API side here - jira-components/jira-api/src/main/java/com/atlassian/jira/permission/ProjectPermissions.java
Steps to Reproduce
In a workflow step, specify a Workflow Property such as jira.permission.archive.denied = denied
Expected Results
The workflow property takes effect on that particular step and disallows archiving
Actual Results
No effect
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is cloned from
-
JRASERVER-71030 Unable to specify "Archive" permission via workflow properties
- Gathering Interest