error when creating a issue for Jira to python

aqib khan July 11, 2021

i'm getting the following error every time that i try to send an issue to Jira:

data was not an array

Here is my dict and my erro code

issue_dict = {
    'project': {'id': 12301},
    'labels': 'angthing',
    'summary': 'Create new issue from jira-python',
    'priority': {'name': 'Major'},
    'issuetype': {'name': 'Bug'},
    'versions': {'name': '3.4.0'},
    'components': {'name': 'App'},
    'description': 'testing,',
    'assignee': {'name': 'lis.new'}
}
new_issue = jira.create_issue(fields=issue_dict)

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2021

Please don't copy and paste other people's questions, it looks like spam.

See https://community.atlassian.com/t5/Jira-questions/error-when-creating-a-issue-for-Jira-to-python/qaq-p/1746645

TAGS
AUG Leaders

Atlassian Community Events