Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JSWCLOUD-27785

Unable to specify "Archive" permission via workflow properties

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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

              Unassigned Unassigned
              emccutcheon Earl McCutcheon (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: