-
Bug
-
Resolution: Not a bug
-
Low (View bug fix roadmap)
-
None
-
6.2.6
-
6.02
-
2
-
Severity 3 - Minor
-
1
-
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
- Remove any other entities from the 'Delete own Attachment' permission;
- Add the reporter to this permission;
- Add the following property to a workflow step:
jira.permission.attachdeleteown.reporter = denied
or
jira.permission.attachdeleteown.reporter.denied
- Publish the Workflow draft;
- Create a new issue, and;
- add an attachment to the issue when it is on the same step to which the property was added;
- 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
- is related to
-
JRASERVER-38209 jira.permission.assignable.group property doesn't work as expected
-
- Closed
-
Hi serverteam1! You'll need to remove the permission for the reporter to delete their own attachments (which would affect all projects that use that scheme, at all steps of the workflow) or use jira.permission.attachdeleteown.denied at that specific step (which would stop everyone from deleting their own attachments at that step). You could also use jira.permission.attachdeleteall.denied which would stop all attachment deletion at that step.
There's no way to explicitly say "the reporter cannot delete their own attachments at that exact step in the workflow" - so you'll need to consider your specific use case and look at alternatives. Since I'm not familiar with your exact requirements, workflow and use case, I can't speak with authority (and recommend you raise a support request, or post a question on the community to see how others are handling such a use case.
Cheers,
Dave
Atlassian Support