Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use user_id when adding watcher #1682

Merged
merged 1 commit into from Jun 29, 2023

Conversation

ABizzinotto
Copy link
Contributor

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.

@adehad adehad added the bug label Jun 29, 2023
@adehad adehad linked an issue Jun 29, 2023 that may be closed by this pull request
4 tasks
Copy link
Collaborator

@adehad adehad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double checked with the docs and it looks good, the endpoint accepts a single string as the body with the user id / username etc,

@adehad adehad merged commit 6f58b70 into pycontribs:main Jun 29, 2023
10 of 12 checks passed
@ABizzinotto ABizzinotto deleted the update-add-watcher branch June 29, 2023 12:32
@supermitch
Copy link

supermitch commented Apr 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add_watcher doesn´t work, returns 200, instead 204
3 participants