Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira python giving an error for remove_watcher

Simon Blackshaw
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2022

Hi. When I try and use the jira.remove_watcher method I'm getting an error in the piece that looks up the user_id from the given username _get_user_id. The error message is:
user_obj = self.search_users(user=user, maxResults=1)[0]
IndexError: list index out of range

The jira.add_user method works correctly for the same username. Is this a known bug and is there a workaround for it? Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer