Use Case: I want to use Pull Requests tasks to enforce that certain conditions are fulfilled in order to be able to merge a Pull Request. To this end, only a certain admin user should be able to resolve a PR task (created by itself)
Issue: According to https://confluence.atlassian.com/bitbucketserver/using-repository-permissions-776639771.html, Anyone with permission to browse a pull request can create a task on any comment, and can browse, resolve and reopen existing tasks in the pull request. With this, anybody could resolve a PR task in order to go ahead with the merge even if the condition tracked by that task is not fulfilled.
Question: is there any way to implement our own permissions for resolving PR tasks. If there is a solution for this I understand it most probably involve implementing a plugin. Could anybody give me a starting point.