How to create a custom field in python jira
<p>I'd like to store some extra information in a custom field. So I create a dictionary for my issue:</p>

<pre><code>            issue_dict = {
            'project': 'PROJECT-TITLE',
            'summary': 'issue title',
            'description': 'issue description',
            'assignee': 'issue assignee',
            'issuetype': {'name': 'Bug'},
            'customfield': {'extra info'}
        }
</code></pre>

<p>and import it to jira like this:</p>

<pre><code>new_issue = self.jira.create_issue(fields=issue_dict)
</code></pre>

<p>The error I get is: </p>

<pre><code>TypeError: set(['extra info']) is not JSON serializable
</code></pre>

<p>One workaround that I found was to store the information in a comment instead and parsing <code>comment body</code>instead. It ain't pretty though.</p>

python python-jira