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.96k stars 874 forks source link

Unable to set Asignee on Task #1781

Open bostonareahuman opened 11 months ago

bostonareahuman commented 11 months ago

Bug summary

issue_dict = {
        'project': 'RS',
        'summary': mysummary,
        'description': dd,
        'issuetype': type,
        'labels':['111','222'],
        'assignee':{'name':'NAME OF USER'}
       }

        new_issue = jac.create_issue(fields=issue_dict)

Issue is created however there is no assignee is given..no errors from what I can see are thrown....

Is there an existing issue for this?

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

3.2.0

Python Interpreter version

3.6.8

Which operating systems have you used?

Reproduction steps

Run the above code in the description

Stack trace

N/A

Expected behaviour

that a new task be created with

Additional Context


certifi 2020.12.5 cffi 1.14.4 chardet 4.0.0 cryptography 3.3.1 defusedxml 0.6.0 idna 2.10 importlib-metadata 4.8.3 jeepney 0.7.1 jira 3.2.0 keyring 23.4.1 oauthlib 3.1.0 pbr 5.5.1 pip 21.3.1 pycparser 2.20 PyJWT 2.0.0 requests 2.25.1 requests-oauthlib 1.3.0 requests-toolbelt 0.9.1 SecretStorage 3.3.3 setuptools 59.6.0 six 1.15.0 typing_extensions 4.1.1 Unidecode 1.1.2 urllib3 1.26.2 wheel 0.37.1 zipp 3.6.0

dimitarOnGithub commented 4 months ago

@bostonareahuman , have you tried using the accountId of the user? JIRA Cloud doesn't support using username or e-mail due to the GDPR changes and I wonder if that might be why it doesn't assign it.