I have a custom script that creates some new issues. One of the step it does is to copy over the assignee of the issue.
At the same time I have an issue permissions that dictates that this action can only be performed by users with elevated rights. This in turn means that not all users can properly use that function.
Ideally I do not want to give those user said permissions but I want my script to do it temporarily for them.
Is there any way of giving a specific permission to a user for a given project and revoking once done in a programmatic manner?
I don't think so.
Instead, you may want to run the script on behalf of a super-user (not the currently logged-in user).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.