diff --git a/src/sentry_plugins/jira/plugin.py b/src/sentry_plugins/jira/plugin.py index 5ce873c0..86d40549 100644 --- a/src/sentry_plugins/jira/plugin.py +++ b/src/sentry_plugins/jira/plugin.py @@ -395,6 +395,14 @@ def create_issue(self, request, group, form_data, **kwargs): v = [v] elif schema.get('custom') == JIRA_CUSTOM_FIELD_TYPES.get('textarea'): v = v + elif schema['type'] == 'number': + try: + if '.' in v: + v = float(v) + else: + v = int(v) + except ValueError: + pass elif (schema.get('type') != 'string' or schema.get('items') != 'string' or schema.get('custom') == JIRA_CUSTOM_FIELD_TYPES.get('select')):