Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-38878

jira.permission.attachdeleteown.reporter Workflow Property doesn't Work

    XMLWordPrintable

Details

    Description

      Atlassian Update - 16 May 2019

      After investigating this bug and how it's supposed to work, we've determined that the functionality is working as intended, and will proceed to close this as not a bug.

      The example outlined in this bug report hasn't been implemented correctly - the format is jira.permission.PERMISSION.GRANT_TYPE. In this example, the workflow property allows the reporter to delete their own attachments. The first example does not work because "Reporter" doesn't accept a parameter or value, while the second one doesn't work because the "Denied" value doesn't act as a negator - but is a suffix to make each rule unique.

      Please see this comment for more details.

      Steps to Replicate

      1. Remove any other entities from the 'Delete own Attachment' permission;
      2. Add the reporter to this permission;
      3. Add the following property to a workflow step:
        jira.permission.attachdeleteown.reporter = denied
        

        or

        jira.permission.attachdeleteown.reporter.denied
        
      4. Publish the Workflow draft;
      5. Create a new issue, and;
      6. add an attachment to the issue when it is on the same step to which the property was added;
      7. Try to delete that attachment

      Expected Behavior

      JIRA wouldn't allow the reporter to delete it.

      Actual Behavior

      JIRA does allow the reporter to delete the attachment.

      Workaround:

      Use a group condition for example so the reporter won't be able to delete it:

      jira.permission.attachdeleteown.group = bogus
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mfernandes@atlassian.com Matheus Fernandes
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: