Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

error when creating a issue for Jira to python

aqib khan I'm New Here Jul 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

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

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