error when creating a issue for Jira to python

noor muhammad July 10, 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

0 votes
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 10, 2021

What libraries are you using to provide the Jira calls?  What do the docs for them say you should be doing when creating an issue?

Suggest an answer

Log in or Sign up to answer