Hi team,
Our AC addon is trying to comment on a JSD issue running as a ‘portal only customer’. Although the user can comment on the JSD portal, the user is not allowed to comment through the JIRA rest api /comment (it raises forbidden error).
My questions are:
- Is there is JSD rest method to create a comment? I could not find it here
- How can we tell from the REST responses that a user is a ‘portal only customer’ and not a regular user. I would need to know this in order to select between a JIRA add comment or a JSD add comment
Related tho this, something odd that happened last week but looks fixed now it’s that the method
rest/api/2/user/permission/searchusername=TheJSDOnlyUser&permissions=COMMENT_ISSUE&issueKey=TheIssueKey
was returning the user so our addon assumed the JSD only user was able to comment the issue. Some customers started to see the forbidden error when our addon was adding comments on behalf of that user. Now it looks fixed? The user is not returned anymore? Was any change related to issue permissions regarding JSD?
UPDATE:
The /user/permission search in one of our customers is returning a false positive response (by returning the user) when asking if the portal only user has COMMENT_ISSUE permission for the given issue. Then, the add comment fails with forbidden error.
Cheers
Fernando