Issue Summary
While trying to publish the rule which has "Create Issue" action, the activity will fail in case current user (account under which you are logged in) doesn't have Create Issues permission for the action's target project. This will happen even if both rule's Owner and Actor account has this permission available.
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Create two separate user accounts that would be further used as the rule's Owner and Actor. Please make sure that these accounts are different from your current user.
- Create new or edit the existing project's permission scheme to set the following access rights:
- Login under Current user and create a new automation rule (this account is expected to have the necessary permissions granted to create rules).
Expected Results
Since the rule will be executed under Actor account, permission should be verified against this account and not against the currently logged user.
Actual Results
In case currently logged user doesn't have Create Issues permission for the project, it will be not possible to publish the rule that expects to create new issues there (even if Actor account has all necessary permissions)
The HTTP 400 error is observed while sending a request:
PUT http://localhost:9001/9001/rest/cb-automation/latest/project/GLOBAL/rule/9 Response: { "errorMessages": [], "errors": { "component:207": { "project": "Please select a valid project." } }, "status": 400, "warningMessages": [] }
Workaround
Grant current user Create Issues permissions to the current user who creates the automation rule. The permission could be granted temporary and revoked after the rule will be successfully created and published
- links to