Hey, I'm new to both jira and python and I'm trying to create an issue through jira-python and got this error:
TypeError: Object of type User is not JSON serializable
Here is my code:
chapeauId='XXXXX'
jiraChapeau= jira.issue(chapeauId)
summary = 'socle serveur pour le projet d'automatisation'
description ='Une description regroupant les paramètres du socle'
issueType="T-065"
priority='Mineur'
zoneReseau='XXXXXXX'
cPT= jiraChapeau.fields.reporter
issueDict={
'project': {'key': "AB-01"},
'parent': chapeauId,
'summary': summary,
'description': description,
'priority': priority,
'issuetype': {'name':issueType},
'customfield_13034': zoneReseau,
'customfield_10490' : cPT,
}
newIssue=jira.create_issue(fields=issueDict)
Thanks 