pycontribs / jira

Python Jira library. Development chat available on https://matrix.to/#/#pycontribs:matrix.org
https://jira.readthedocs.io
BSD 2-Clause "Simplified" License
1.94k stars 859 forks source link

Use user_id when adding watcher #1682

Closed ABizzinotto closed 1 year ago

ABizzinotto commented 1 year ago

I believe this is related to #1431

The add_watcher method is failing when using a user name. I tried with v2 and v3 of the Cloud API. It worked with the user ID though. I believe this is related to Jira's GDPR issues.

Added a simple fix to retrieve the ID before adding the watcher. This is already done in the delete_watcher method.

supermitch commented 5 months ago

This was a breaking change, and shouldn't this be backwards compatible? Adding a fix to search for user ID using email adds an API call when I already have the user IDs. Can we verify the format first, and accept both?