-
-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Description
Problem trying to solve
I noticed that in version 3.5.x, the new Jira cloud (and this package) required a user ID to add watchers.
See https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-watchers/#api-rest-api-3-issue-issueidorkey-watchers-post
However, in #1682, someone added the (very useful) ability to once again add watchers by email addresses. However, they:
- Added an extra API call
- Broke consistency with the API docs
Possible solution(s)
Please update the method and documentation so we can pass either an email address or an accountId
, if we already have it.
Alternatives
- Alternatively, I would revert the functionality to be more in-line with the REST API.
- Alternatively, update the documentation to be more explicit, stating that a user search is being conducted internally.
Additional Context
Source: https://jira.readthedocs.io/_modules/jira/client.html#JIRA.add_watcher
jmdocu, fukszdomonkos and GabDug
Metadata
Metadata
Assignees
Labels
No labels