Hello,
I am trying to create an issue in my project with some custom fields, via the python jira API. I need to use some custom fields to store some info.
If I create an issue via the following, everything works great
def createIssue(self):
issue_dict = {
'project': {'key': 'GLOB'},
'summary': 'New issue from jira-python',
'description': 'Look into this one',
'issuetype': {'name': 'Bug'},
}
self.__client.create_issue(fields=issue_dict)
But, when I introduce a custom field, everything breaks
def createIssue(self):
issue_dict = {
'project': {'key': 'GLOB'},
'summary': 'New issue from jira-python',
'description': 'Look into this one',
'issuetype': {'name': 'Bug'},
'customfield_15400': {'value' : 'NO'}
}
self.__client.create_issue(fields=issue_dict)
And I get the following error:
Field 'customfield_15400' cannot be set. It is not on the appropriate screen, or unknown.
Does anyone know how to overcome this? Thanks!