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

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

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
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