It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to assign ticket to a user / API / Python

Hi,

 

I have written a script to create projects with issues in Jira. The scrip uses this Python lib: https://jira.readthedocs.io/

My problem now is that I can't assign tickets anymore - I am getting this error:

„Konto-ID“ muss der einzige Abfrageparameter für die Identifizierung des Benutzers im strengen Modus der DSGVO

The script and also the assigning tickets to Jira users worked a few days earlier. Nothing change in the script. I am using the cloud version

 

The complete error I am getting:

Traceback (most recent call last):
  File "create_templated_jira_projects.py", line 100, in <module>
    jiraConnection.assign_issue("IM-102", "fhellriegel")
  File "/usr/local/lib/python3.8/site-packages/jira/client.py", line 126, in wrapper
    result = func(*arg_list, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/jira/client.py", line 1310, in assign_issue
    r = self._session.put(
  File "/usr/local/lib/python3.8/site-packages/jira/resilientsession.py", line 157, in put
    return self.__verb('PUT', url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/jira/resilientsession.py", line 147, in __verb
    raise_on_error(response, verb=verb, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/jira/resilientsession.py", line 56, in raise_on_error
    raise JIRAError(
jira.exceptions.JIRAError: JiraError HTTP 400 url: https://artusinteractive.atlassian.net/rest/api/latest/issue/IM-102/assignee	text: „Konto-ID“ muss der einzige Abfrageparameter für die Identifizierung des Benutzers im strengen Modus der DSGVO sein.
	
	response headers = {'Server': 'AtlassianProxy/1.15.8.1', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Type': 'application/json;charset=UTF-8', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Fri, 14 Feb 2020 16:40:45 GMT', 'ATL-TraceId': 'f9dacc9dcd4bc8ae', 'X-AACCOUNTID': '557058%3A64cf2f49-35f7-4cad-8fde-2f232794794c', 'X-AREQUESTID': '4a1592ef-4336-438c-99b5-4da6181ec30b', 'X-XSS-Protection': '1; mode=block', 'Transfer-Encoding': 'chunked', 'Timing-Allow-Origin': '*', 'X-Content-Type-Options': 'nosniff', 'Connection': 'close'}
	response text = {"errorMessages":["„Konto-ID“ muss der einzige Abfrageparameter für die Identifizierung des Benutzers im strengen Modus der DSGVO sein."],"errors":{}}

Does anyone has an idea what is going on?

 

Thanx for help   

2 answers

I'm having exact same issue! No changes in the script. And I've got the exact same response text. 

I read this article
https://docs.automationforjira.com/knowledge-base/convert-usernames-to-user-account-id.html#who-this-guide-is-for

 

And tried to use userID. But I'm still receiving the same error.

"Operations that currently use a username and/or userKey as a search clause (for example, JQL queries) will also use an Atlassian account ID (accountId). After the deprecation period ends, only an accountId may be used. To help you update your JQL queries, we’ve introduced a new operation: POST /rest/api/3/jql/pdcleaner which takes one or more JQL queries with user identifiers and converts them to equivalent JQL queries with account IDs."

So as I understand JIRA do not accept usernames anymore, but they did not changed JIRA python libriary.

Updated package to the latest version. Still no luck.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

201 views 4 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you