Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

error when creating a issue for Jira to python

aqib khan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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