diff --git a/Packs/Jira/Integrations/JiraV3/JiraV3_test.py b/Packs/Jira/Integrations/JiraV3/JiraV3_test.py index cc6b08021575..57e72a2167e8 100644 --- a/Packs/Jira/Integrations/JiraV3/JiraV3_test.py +++ b/Packs/Jira/Integrations/JiraV3/JiraV3_test.py @@ -1,4 +1,3 @@ -import io import json import pytest import demistomock as demisto @@ -8,12 +7,12 @@ def util_load_json(path: str): - with io.open(path, mode='r', encoding='utf-8') as f: + with open(path, encoding='utf-8') as f: return json.loads(f.read()) def util_load_bytes_file(path: str): - with io.open(path, mode='rb') as f: + with open(path, mode='rb') as f: return f.read() # return json.loads(f.read()) @@ -340,7 +339,7 @@ def test_extract_comment_entry_from_raw_response(self): comment_raw_response = { "id": "18322", "author": { - "displayName": "Tomer Malache", + "displayName": "Example User", }, "body": { "version": 1, @@ -359,14 +358,14 @@ def test_extract_comment_entry_from_raw_response(self): }, "renderedBody": "

Hello there

", "updateAuthor": { - "displayName": "Tomer Malache", + "displayName": "Example User", }, "created": "2023-03-23T07:45:29.056+0200", "updated": "2023-03-23T07:45:29.056+0200", } - expected_comment_entry = {'Id': '18322', 'Comment': 'Hello there', 'User': 'Tomer Malache', + expected_comment_entry = {'Id': '18322', 'Comment': 'Hello there', 'User': 'Example User', 'Created': '2023-03-23T07:45:29.056+0200', 'Updated': '2023-03-23T07:45:29.056+0200', - 'UpdateUser': 'Tomer Malache'} + 'UpdateUser': 'Example User'} comment_entry = extract_comment_entry_from_raw_response(comment_response=comment_raw_response) assert comment_entry == expected_comment_entry @@ -605,7 +604,7 @@ def test_get_id_offset_command(self, mocker): raw_response = util_load_json('test_data/issue_query_test/raw_response.json') run_query_mocker = mocker.patch.object(client, 'run_query', return_value=raw_response) command_result = get_id_offset_command(client=client, args={}) - assert 'ORDER BY created ASC' == run_query_mocker.call_args[1].get('query_params', {}).get('jql') + assert run_query_mocker.call_args[1].get('query_params', {}).get('jql') == 'ORDER BY created ASC' assert {'Ticket': {'idOffSet': '10161'}} == command_result.to_context()['EntryContext'] @@ -892,7 +891,7 @@ def test_issue_to_issue_command(self, mocker): client = jira_base_client_mock() mocker.patch.object(client, 'create_issue_link', return_value=requests.Response()) command_results = link_issue_to_issue_command(client=client, args={}) - assert 'Issue link created successfully' == command_results.to_context()['HumanReadable'] + assert command_results.to_context()['HumanReadable'] == 'Issue link created successfully' class TestJiraSprintIssueMoveCommand: @@ -909,7 +908,7 @@ def test_jira_sprint_issue_move(self, mocker): client = jira_base_client_mock() mocker.patch.object(client, 'issues_to_sprint', return_value=requests.Response()) command_results = issues_to_sprint_command(client=client, args={}) - assert 'Issues were moved to the Sprint successfully' == command_results.to_context()['HumanReadable'] + assert command_results.to_context()['HumanReadable'] == 'Issues were moved to the Sprint successfully' class TestJiraEpicIssuesCommand: @@ -1398,7 +1397,7 @@ def test_update_remote_system_using_delta(self, mocker): update_remote_system_res = update_remote_system_command(client=client, args=args, comment_tag_to_jira='', attachment_tag_to_jira='') assert update_remote_system_res == '17757' - edit_issue_mocker.call_args[1]['json_data'] == {'fields': {'summary': 'data'}} + assert edit_issue_mocker.call_args[1]['json_data'] == {'fields': {'summary': 'data'}} def test_update_remote_system_using_file_entry_with_correct_tag(self, mocker): """ @@ -1582,9 +1581,9 @@ def test_close_incident_entry(self, mocker, issue, should_be_closed): close_reason = "Issue was marked as \"Resolved\", or status was changed to \"Done\"" closed_entry = [{"Type": 1, "Contents": {"dbotIncidentClose": True, "closeReason": close_reason}, "ContentsFormat": "json"}] - parsed_entries == closed_entry + assert parsed_entries == closed_entry else: - parsed_entries == [] + assert parsed_entries == [] def test_get_remote_data_response_is_returned(self, mocker): """ @@ -1683,14 +1682,14 @@ def test_get_comments_entries_for_fetched_incident(self, mocker): mocker.patch.object(client, 'get_comments', return_value=comments_raw_response) comments_entries = get_comments_entries_for_fetched_incident(client=client, issue_id_or_key='1234') expected_comments_entries = [ - {'Id': '18322', 'Comment': 'Hello there', 'User': 'Tomer Malache', 'Created': '2023-03-23T07:45:29.056+0200', - 'Updated': '2023-03-23T07:45:29.056+0200', 'UpdateUser': 'Tomer Malache'}, - {'Id': '18329', 'Comment': 'Second comment', 'User': 'Tomer Malache', 'Created': '2023-03-27T20:54:15.878+0300', - 'Updated': '2023-03-27T20:54:15.878+0300', 'UpdateUser': 'Tomer Malache'}, - {'Id': '18394', 'Comment': 'This is a comment from Jira demo', 'User': 'Tomer Malache', - 'Created': '2023-04-24T15:41:54.472+0300', 'Updated': '2023-04-24T15:41:54.472+0300', 'UpdateUser': 'Tomer Malache'} + {'Id': '18322', 'Comment': 'Hello there', 'User': 'Example User', 'Created': '2023-03-23T07:45:29.056+0200', + 'Updated': '2023-03-23T07:45:29.056+0200', 'UpdateUser': 'Example User'}, + {'Id': '18329', 'Comment': 'Second comment', 'User': 'Example User', 'Created': '2023-03-27T20:54:15.878+0300', + 'Updated': '2023-03-27T20:54:15.878+0300', 'UpdateUser': 'Example User'}, + {'Id': '18394', 'Comment': 'This is a comment from Jira demo', 'User': 'Example User', + 'Created': '2023-04-24T15:41:54.472+0300', 'Updated': '2023-04-24T15:41:54.472+0300', 'UpdateUser': 'Example User'} ] - expected_comments_entries == comments_entries + assert expected_comments_entries == comments_entries def test_get_attachments_entries_for_fetched_incident(self, mocker): """ @@ -1715,7 +1714,7 @@ def test_get_attachments_entries_for_fetched_incident(self, mocker): attachments_metadata=[attachment_metadata_raw_response, attachment_metadata_raw_response] ) - expected_attachments_entries == attachments_entries + assert expected_attachments_entries == attachments_entries def test_get_fetched_attachments(self, mocker): """ @@ -1749,10 +1748,10 @@ def test_get_fetched_comments(self, mocker): """ from JiraV3 import get_fetched_comments expected_comments_entries = [ - {'Id': '18322', 'Comment': 'Hello there', 'User': 'Tomer Malache', 'Created': '2023-03-23T07:45:29.056+0200', - 'Updated': '2023-03-23T07:45:29.056+0200', 'UpdateUser': 'Tomer Malache'}, - {'Id': '18329', 'Comment': 'Second comment', 'User': 'Tomer Malache', 'Created': '2023-03-27T20:54:15.878+0300', - 'Updated': '2023-03-27T20:54:15.878+0300', 'UpdateUser': 'Tomer Malache'}] + {'Id': '18322', 'Comment': 'Hello there', 'User': 'Example User', 'Created': '2023-03-23T07:45:29.056+0200', + 'Updated': '2023-03-23T07:45:29.056+0200', 'UpdateUser': 'Example User'}, + {'Id': '18329', 'Comment': 'Second comment', 'User': 'Example User', 'Created': '2023-03-27T20:54:15.878+0300', + 'Updated': '2023-03-27T20:54:15.878+0300', 'UpdateUser': 'Example User'}] mocker.patch('JiraV3.get_comments_entries_for_fetched_incident', return_value=expected_comments_entries) attachments_entries = [ {'Contents': '', 'ContentsFormat': 'dummy_format', 'Type': 'dummy_type', 'File': 'dummy_filename_1', @@ -2005,8 +2004,8 @@ def test_create_incident_from_issue(self, mocker): mocker.patch.object(client, 'run_query', return_value=query_raw_response) mocker.patch('JiraV3.get_fetched_attachments', return_value=[{'FileID': '1'}, {'FileID': '2'}]) comments_entries = [ - {'Id': '18322', 'Comment': 'Hello there', 'User': 'Tomer Malache', 'Created': '2023-03-23T07:45:29.056+0200', - 'Updated': '2023-03-23T07:45:29.056+0200', 'UpdateUser': 'Tomer Malache'}] + {'Id': '18322', 'Comment': 'Hello there', 'User': 'Example User', 'Created': '2023-03-23T07:45:29.056+0200', + 'Updated': '2023-03-23T07:45:29.056+0200', 'UpdateUser': 'Example User'}] mocker.patch('JiraV3.get_comments_entries_for_fetched_incident', return_value=comments_entries) incidents = fetch_incidents( client=client, @@ -2023,4 +2022,4 @@ def test_create_incident_from_issue(self, mocker): attachment_tag_to_jira='attachment_tag_to_jira', attachment_tag_from_jira='attachment_tag_from_jira' ) - json.dumps(issue_incident) == incidents[0].get('rawJSON') + assert json.dumps(issue_incident) == incidents[0].get('rawJSON') diff --git a/Packs/Jira/Integrations/JiraV3/test_data/fetch_incidents_test/issue_incident.json b/Packs/Jira/Integrations/JiraV3/test_data/fetch_incidents_test/issue_incident.json index df87ba0b0433..3a028bf23dc6 100644 --- a/Packs/Jira/Integrations/JiraV3/test_data/fetch_incidents_test/issue_incident.json +++ b/Packs/Jira/Integrations/JiraV3/test_data/fetch_incidents_test/issue_incident.json @@ -5,143 +5,29 @@ "key": "DEM-158", "renderedFields": { "statuscategorychangedate": "11/Dec/18 8:02 PM", - "customfield_10070": { - "issueFieldDisplayName": "Responders", - "rawData": { - "issueFieldDisplayName": "Responders", - "rawData": {} - } - }, - "customfield_10071": { - "issueFieldDisplayName": "Time to resolution", - "rawData": { - "issueFieldDisplayName": "Time to resolution", - "rawData": {} - } - }, - "customfield_10072": { - "issueFieldDisplayName": "Time to first response", - "rawData": { - "issueFieldDisplayName": "Time to first response", - "rawData": {} - } - }, - "customfield_10073": { - "issueFieldDisplayName": "Time to close after resolution", - "rawData": { - "issueFieldDisplayName": "Time to close after resolution", - "rawData": {} - } - }, - "customfield_10074": { - "issueFieldDisplayName": "Time to review normal change", - "rawData": { - "issueFieldDisplayName": "Time to review normal change", - "rawData": {} - } - }, - "customfield_10075": { - "issueFieldDisplayName": "Source IP", - "rawData": { - "issueFieldDisplayName": "Source IP", - "rawData": {} - } - }, - "customfield_10076": { - "issueFieldDisplayName": "Destination IP", - "rawData": { - "issueFieldDisplayName": "Destination IP", - "rawData": {} - } - }, + "customfield_10070": [], + "customfield_10071": null, + "customfield_10072": null, + "customfield_10073": null, + "customfield_10074": null, + "customfield_10075": null, + "customfield_10076": null, "fixVersions": null, - "customfield_10078": { - "issueFieldDisplayName": "SRC IP", - "rawData": { - "issueFieldDisplayName": "SRC IP", - "rawData": {} - } - }, - "customfield_10079": { - "issueFieldDisplayName": "DST IP", - "rawData": { - "issueFieldDisplayName": "DST IP", - "rawData": {} - } - }, + "customfield_10078": "", + "customfield_10079": "", "resolution": null, "lastViewed": "27/Mar/23 3:25 PM", - "customfield_10060": { - "issueFieldDisplayName": "Severity", - "rawData": { - "issueFieldDisplayName": "Severity", - "rawData": {} - } - }, - "customfield_10061": { - "issueFieldDisplayName": "Source", - "rawData": { - "issueFieldDisplayName": "Source", - "rawData": {} - } - }, - "customfield_10062": { - "issueFieldDisplayName": "Implementation plan", - "rawData": { - "issueFieldDisplayName": "Implementation plan", - "rawData": {} - } - }, - "customfield_10063": { - "issueFieldDisplayName": "Backout plan", - "rawData": { - "issueFieldDisplayName": "Backout plan", - "rawData": {} - } - }, - "customfield_10064": { - "issueFieldDisplayName": "Test plan", - "rawData": { - "issueFieldDisplayName": "Test plan", - "rawData": {} - } - }, - "customfield_10065": { - "issueFieldDisplayName": "Planned start", - "rawData": { - "issueFieldDisplayName": "Planned start", - "rawData": {} - } - }, - "customfield_10066": { - "issueFieldDisplayName": "Planned end", - "rawData": { - "issueFieldDisplayName": "Planned end", - "rawData": {} - } - }, + "customfield_10060": null, + "customfield_10061": null, + "customfield_10062": "", + "customfield_10063": "", + "customfield_10064": "", + "customfield_10065": null, + "customfield_10066": null, "priority": null, - "customfield_10067": { - "issueFieldDisplayName": "Investigation reason", - "rawData": { - "issueFieldDisplayName": "Investigation reason", - "rawData": {} - } - }, - "customfield_10068": { - "issueFieldDisplayName": "Root cause", - "rawData": { - "issueFieldDisplayName": "Root cause", - "rawData": {} - } - }, - "customfield_10069": { - "issueFieldDisplayName": "Workaround", - "rawData": { - "issueFieldDisplayName": "Workaround", - "rawData": {} - } - }, + "customfield_10067": null, + "customfield_10068": "", + "customfield_10069": "", "labels": null, "timeestimate": null, "aggregatetimeoriginalestimate": null, @@ -150,151 +36,31 @@ "assignee": null, "status": null, "components": null, - "customfield_10050": { - "issueFieldDisplayName": "Satisfaction date", - "rawData": { - "issueFieldDisplayName": "Satisfaction date", - "rawData": {} - } - }, - "customfield_10051": { - "issueFieldDisplayName": "Approvals", - "rawData": { - "issueFieldDisplayName": "Approvals", - "rawData": {} - } - }, - "customfield_10052": { - "issueFieldDisplayName": "Request language", - "rawData": { - "issueFieldDisplayName": "Request language", - "rawData": {} - } - }, - "customfield_10053": { - "issueFieldDisplayName": "Urgency", - "rawData": { - "issueFieldDisplayName": "Urgency", - "rawData": {} - } - }, - "customfield_10054": { - "issueFieldDisplayName": "Pending reason", - "rawData": { - "issueFieldDisplayName": "Pending reason", - "rawData": {} - } - }, - "customfield_10055": { - "issueFieldDisplayName": "Product categorization", - "rawData": { - "issueFieldDisplayName": "Product categorization", - "rawData": {} - } - }, - "customfield_10056": { - "issueFieldDisplayName": "Operational categorization", - "rawData": { - "issueFieldDisplayName": "Operational categorization", - "rawData": {} - } - }, - "customfield_10057": { - "issueFieldDisplayName": "Approver groups", - "rawData": { - "issueFieldDisplayName": "Approver groups", - "rawData": {} - } - }, - "customfield_10058": { - "issueFieldDisplayName": "Affected hardware", - "rawData": { - "issueFieldDisplayName": "Affected hardware", - "rawData": {} - } - }, - "customfield_10059": { - "issueFieldDisplayName": "Affected services", - "rawData": { - "issueFieldDisplayName": "Affected services", - "rawData": {} - } - }, - "customfield_10049": { - "issueFieldDisplayName": "Work category", - "rawData": { - "issueFieldDisplayName": "Work category", - "rawData": {} - } - }, + "customfield_10050": null, + "customfield_10051": null, + "customfield_10052": null, + "customfield_10053": null, + "customfield_10054": null, + "customfield_10055": null, + "customfield_10056": null, + "customfield_10057": null, + "customfield_10058": "", + "customfield_10059": null, + "customfield_10049": null, "aggregatetimeestimate": null, "creator": null, "subtasks": null, - "customfield_10040": { - "issueFieldDisplayName": "Ticket Number", - "rawData": { - "issueFieldDisplayName": "Ticket Number", - "rawData": {} - } - }, - "customfield_10041": { - "issueFieldDisplayName": "Requested Sources", - "rawData": { - "issueFieldDisplayName": "Requested Sources", - "rawData": {} - } - }, - "customfield_10042": { - "issueFieldDisplayName": "Target start", - "rawData": { - "issueFieldDisplayName": "Target start", - "rawData": {} - } - }, + "customfield_10040": null, + "customfield_10041": null, + "customfield_10042": null, "reporter": null, - "customfield_10043": { - "issueFieldDisplayName": "Target end", - "rawData": { - "issueFieldDisplayName": "Target end", - "rawData": {} - } - }, + "customfield_10043": null, "aggregateprogress": null, - "customfield_10045": { - "issueFieldDisplayName": "CustomTest", - "rawData": { - "issueFieldDisplayName": "CustomTest", - "rawData": {} - } - }, - "customfield_10047": { - "issueFieldDisplayName": "label test", - "rawData": { - "issueFieldDisplayName": "label test", - "rawData": {} - } - }, - "customfield_10048": { - "issueFieldDisplayName": "test user picker", - "rawData": { - "issueFieldDisplayName": "test user picker", - "rawData": {} - } - }, - "customfield_10038": { - "issueFieldDisplayName": "Software Version", - "rawData": { - "issueFieldDisplayName": "Software Version", - "rawData": {} - } - }, - "customfield_10039": { - "issueFieldDisplayName": "Software Vendor", - "rawData": { - "issueFieldDisplayName": "Software Vendor", - "rawData": {} - } - }, + "customfield_10045": "", + "customfield_10047": null, + "customfield_10048": null, + "customfield_10038": null, + "customfield_10039": "", "progress": null, "votes": null, "worklog": { @@ -305,356 +71,67 @@ }, "issuetype": null, "timespent": null, - "customfield_10031": { - "issueFieldDisplayName": "Satisfaction", - "rawData": { - "issueFieldDisplayName": "Satisfaction", - "rawData": {} - } - }, + "customfield_10031": null, "project": null, - "customfield_10032": { - "issueFieldDisplayName": "Issueidlist", - "rawData": { - "issueFieldDisplayName": "Issueidlist", - "rawData": {} - } - }, - "customfield_10033": { - "issueFieldDisplayName": "FanaticsTest", - "rawData": { - "issueFieldDisplayName": "FanaticsTest", - "rawData": {} - } - }, + "customfield_10032": null, + "customfield_10033": "", "aggregatetimespent": null, - "customfield_10034": { - "issueFieldDisplayName": "Content type", - "rawData": { - "issueFieldDisplayName": "Content type", - "rawData": {} - } - }, - "customfield_10035": { - "issueFieldDisplayName": "Publication date", - "rawData": { - "issueFieldDisplayName": "Publication date", - "rawData": {} - } - }, - "customfield_10036": { - "issueFieldDisplayName": "Early Warning", - "rawData": { - "issueFieldDisplayName": "Early Warning", - "rawData": {} - } - }, - "customfield_10037": { - "issueFieldDisplayName": "Software Name", - "rawData": { - "issueFieldDisplayName": "Software Name", - "rawData": {} - } - }, - "customfield_10027": { - "issueFieldDisplayName": "Flagged", - "rawData": { - "issueFieldDisplayName": "Flagged", - "rawData": {} - } - }, - "customfield_10029": { - "issueFieldDisplayName": "Type of Incident", - "rawData": { - "issueFieldDisplayName": "Type of Incident", - "rawData": {} - } - }, + "customfield_10034": "", + "customfield_10035": null, + "customfield_10036": null, + "customfield_10037": "", + "customfield_10027": null, + "customfield_10029": null, "resolutiondate": null, "workratio": null, "watches": null, "issuerestriction": null, "created": "11/Dec/18 8:02 PM", - "customfield_10022": { - "issueFieldDisplayName": "Request Type", - "rawData": { - "issueFieldDisplayName": "Request Type", - "rawData": {} - } - }, - "customfield_10023": { - "issueFieldDisplayName": "Request participants", - "rawData": { - "issueFieldDisplayName": "Request participants", - "rawData": {} - } - }, - "customfield_10024": { - "issueFieldDisplayName": "Story point estimate", - "rawData": { - "issueFieldDisplayName": "Story point estimate", - "rawData": {} - } - }, - "customfield_10025": { - "issueFieldDisplayName": "Issue color", - "rawData": { - "issueFieldDisplayName": "Issue color", - "rawData": {} - } - }, - "customfield_10016": { - "issueFieldDisplayName": "[CHART] Date of First Response", - "rawData": { - "issueFieldDisplayName": "[CHART] Date of First Response", - "rawData": {} - } - }, - "customfield_10017": { - "issueFieldDisplayName": "[CHART] Time in Status", - "rawData": { - "issueFieldDisplayName": "[CHART] Time in Status", - "rawData": {} - } - }, - "customfield_10018": { - "issueFieldDisplayName": "Sprint", - "rawData": { - "issueFieldDisplayName": "Sprint", - "rawData": {} - } - }, - "customfield_10019": { - "issueFieldDisplayName": "Rank", - "rawData": { - "issueFieldDisplayName": "Rank", - "rawData": "0|i0001j:" - } - }, + "customfield_10022": null, + "customfield_10023": null, + "customfield_10024": null, + "customfield_10025": "", + "customfield_10016": null, + "customfield_10017": null, + "customfield_10018": null, + "customfield_10019": null, "updated": "11/Dec/18 8:02 PM", - "customfield_10090": { - "issueFieldDisplayName": "Total forms", - "rawData": { - "issueFieldDisplayName": "Total forms", - "rawData": {} - } - }, - "customfield_10091": { - "issueFieldDisplayName": "XSOAR Status", - "rawData": { - "issueFieldDisplayName": "XSOAR Status", - "rawData": {} - } - }, - "customfield_10092": { - "issueFieldDisplayName": "Compass", - "rawData": { - "issueFieldDisplayName": "Compass", - "rawData": {} - } - }, - "customfield_10093": { - "issueFieldDisplayName": "XSOAR ID", - "rawData": { - "issueFieldDisplayName": "XSOAR ID", - "rawData": {} - } - }, - "customfield_10094": { - "issueFieldDisplayName": "Category", - "rawData": { - "issueFieldDisplayName": "Category", - "rawData": {} - } - }, + "customfield_10090": null, + "customfield_10091": "", + "customfield_10092": null, + "customfield_10093": "", + "customfield_10094": null, "timeoriginalestimate": null, - "customfield_10095": { - "issueFieldDisplayName": "AHA! Link", - "rawData": { - "issueFieldDisplayName": "AHA! Link", - "rawData": {} - } - }, - "customfield_10096": { - "issueFieldDisplayName": "custom_plaintext_field", - "rawData": { - "issueFieldDisplayName": "custom_plaintext_field", - "rawData": {} - } - }, + "customfield_10095": null, + "customfield_10096": "", "description": "", - "customfield_10097": { - "issueFieldDisplayName": "PR Link", - "rawData": { - "issueFieldDisplayName": "PR Link", - "rawData": {} - } - }, - "customfield_10013": { - "issueFieldDisplayName": "Epic Link", - "rawData": { - "issueFieldDisplayName": "Epic Link", - "rawData": {} - } - }, - "customfield_10014": { - "issueFieldDisplayName": "Start date", - "rawData": { - "issueFieldDisplayName": "Start date", - "rawData": {} - } - }, + "customfield_10097": null, + "customfield_10013": null, + "customfield_10014": null, "timetracking": {}, - "customfield_10015": { - "issueFieldDisplayName": "Parent Link", - "rawData": { - "issueFieldDisplayName": "Parent Link", - "rawData": { - "hasEpicLinkFieldDependency": false, - "showField": false, - "nonEditableReason": { - "reason": "PLUGIN_LICENSE_ERROR", - "message": "The Parent Link is only available to Jira Premium users." - } - } - } - }, - "customfield_10005": { - "issueFieldDisplayName": "Change type", - "rawData": { - "issueFieldDisplayName": "Change type", - "rawData": {} - } - }, - "customfield_10006": { - "issueFieldDisplayName": "Change risk", - "rawData": { - "issueFieldDisplayName": "Change risk", - "rawData": {} - } - }, - "customfield_10007": { - "issueFieldDisplayName": "Change reason", - "rawData": { - "issueFieldDisplayName": "Change reason", - "rawData": {} - } - }, + "customfield_10015": null, + "customfield_10005": null, + "customfield_10006": null, + "customfield_10007": null, "security": null, - "customfield_10008": { - "issueFieldDisplayName": "Change start date", - "rawData": { - "issueFieldDisplayName": "Change start date", - "rawData": {} - } - }, - "customfield_10009": { - "issueFieldDisplayName": "Change completion date", - "rawData": { - "issueFieldDisplayName": "Change completion date", - "rawData": {} - } - }, + "customfield_10008": null, + "customfield_10009": null, "attachment": [], "summary": null, - "customfield_10080": { - "issueFieldDisplayName": "Destination Port", - "rawData": { - "issueFieldDisplayName": "Destination Port", - "rawData": {} - } - }, - "customfield_10081": { - "issueFieldDisplayName": "FW policy action", - "rawData": { - "issueFieldDisplayName": "FW policy action", - "rawData": {} - } - }, - "customfield_10082": { - "issueFieldDisplayName": "FW Source Zone", - "rawData": { - "issueFieldDisplayName": "FW Source Zone", - "rawData": {} - } - }, - "customfield_10083": { - "issueFieldDisplayName": "FW Destination Zone", - "rawData": { - "issueFieldDisplayName": "FW Destination Zone", - "rawData": {} - } - }, - "customfield_10084": { - "issueFieldDisplayName": "Protocol", - "rawData": { - "issueFieldDisplayName": "Protocol", - "rawData": {} - } - }, - "customfield_10085": { - "issueFieldDisplayName": "FW Service", - "rawData": { - "issueFieldDisplayName": "FW Service", - "rawData": {} - } - }, - "customfield_10086": { - "issueFieldDisplayName": "Major incident", - "rawData": { - "issueFieldDisplayName": "Major incident", - "rawData": {} - } - }, - "customfield_10087": { - "issueFieldDisplayName": "Open forms", - "rawData": { - "issueFieldDisplayName": "Open forms", - "rawData": {} - } - }, - "customfield_10088": { - "issueFieldDisplayName": "Submitted forms", - "rawData": { - "issueFieldDisplayName": "Submitted forms", - "rawData": {} - } - }, - "customfield_10001": { - "issueFieldDisplayName": "Team", - "rawData": { - "issueFieldDisplayName": "Team", - "rawData": {} - } - }, - "customfield_10089": { - "issueFieldDisplayName": "Locked forms", - "rawData": { - "issueFieldDisplayName": "Locked forms", - "rawData": {} - } - }, - "customfield_10002": { - "issueFieldDisplayName": "Organizations", - "rawData": { - "issueFieldDisplayName": "Organizations", - "rawData": {} - } - }, - "customfield_10003": { - "issueFieldDisplayName": "Approvers", - "rawData": { - "issueFieldDisplayName": "Approvers", - "rawData": {} - } - }, - "customfield_10004": { - "issueFieldDisplayName": "Impact", - "rawData": { - "issueFieldDisplayName": "Impact", - "rawData": {} - } - }, + "customfield_10080": "", + "customfield_10081": "", + "customfield_10082": "", + "customfield_10083": "", + "customfield_10084": "", + "customfield_10085": "", + "customfield_10086": null, + "customfield_10087": null, + "customfield_10088": null, + "customfield_10001": null, + "customfield_10089": null, + "customfield_10002": null, + "customfield_10003": null, + "customfield_10004": null, "environment": "", "duedate": null, "comment": {