I created a script in Python that reads an underlying database table and updates a custom user field (Team Lead) based on new organization changes. I am having issues actually updating the user type custom field. I know Atlassian made changes to the structure of user fields to now use the accountId, but that still did not seem to work. Any help is appreciated.
I authenticate using user name and security_token which is set as a variable I call auth_jira to use throughout my script.
Code provided below:
LOG.debug('Updating candidate Jira issue team leads...')
for ix, row in acct_lead_df.iterrows():
LOG.debug(f"{row['key']}|{row['issueType']}|{row['acctTeamLead']}")
auth_jira.issue(row['key']).update(fields={'customfield_10268': [{'accountId': row['id']}]})