Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

"Push Defect" Issue


#1

Received the following error, when tried to create a JIRA ticket using Push command:

but Admit with same Role, did not have any problem to use Push command.

[Jira_RESTException] related to this issue:

[Jira_RESTException] 
summary: Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.
components: Field 'components' cannot be set. It is not on the appropriate screen, or unknown.
versions: Field 'versions' cannot be set. It is not on the appropriate screen, or unknown.
description: Field 'description' cannot be set. It is not on the appropriate screen, or unknown.
fixVersions: Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown.
priority: Field 'priority' cannot be set. It is not on the appropriate screen, or unknown.
labels: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown.
---
Details: <missing>
File: C:\inetpub\wwwroot\app\plugins\defects\Jira_REST.php
Line: 1868
Status Code: 500
Host: ...
Uri: /index.php?/defects/ajax_push (POST)
---
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
PHP: 5.6.23
Server: Windows NT 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) i586
---
status_id: 1
assignedto: <empty>
comment: What's ES&C? Endpoint Security and Control? It probably isn't a good idea to refer to this using the product name since the product name keeps changing. Call it the 'Menubar shield icon", as you do elsewhere in the test.
elapsed: 5m 26s
defects: <empty>
attachments: <empty>
custom_endpoint: <empty>
custom_step_results: [{"content":"\\---| on-access scanning enabled \\---| \n \nS: Ensure SAV has a valid update location and on-access scanning is on. \nR: The black {S} shield icon should be displayed. \nS: Click on the men bar shield icon. \nR: The status is set to \"Up to Date\". ","status_id":"3"},{"content":"\\---| threat detection \\---| \n \nS: Ensure on-access scanning is turned on.  Attempt to access a file containing a threat. \nR: While the threat detected popup is displayed, the menu bar displays the {!} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"Virus Detected\". ","status_id":"3"},{"content":"\\---| clear threat detection \\---| \n \nS: Close the threat detected popup. \nR: The menu bar displays the black {S} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"Up to Date\". ","status_id":"3"},{"content":"\\---| on-access scanning disabled \\---| \n \nS: Turn off on-access scanning. \nR: The menu bar displays the greyed-out {S} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"On-Access Scanning is Disabled\". ","status_id":"3"},{"content":"\\---| updating \\---| \n \nS: Clear out the SAU cache (located in /Library/Caches/com.sophos.sau/CID). \nS: Choose \"Update Now\" from the shield icon drop-down menu. \nR: The menu bar displays the downloading {⬇ } shield icon. \nR: Click on the shield icon again and verify the status is set to \"Updating...\". ","status_id":"3"},{"content":"\\---| cancelled updating \\---| \n \nS: Before the download completes click on the shield icon again and select \"Cancel Update\". \nR: The menu bar displays the {x} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"Update Has Been Cancelled\". ","status_id":"3"},{"content":"\\---| failed update \\---| \n \nS: Open SAV Preferences, go to the AutoUpdate tab, and change the address to something non-existent. \nS: Select \"Update Now\" from the shield icon. \nR: The update fails, the menu bar displays the {x} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"Failed to Download Update\". ","status_id":"3"},{"content":"\\---| successful update \\---| \n \nS: Open SAV Preferences, go to the AutoUpdate tab, and change the address back to the correct location for the CID. \nS: Select \"Update Now\" from the shield icon. \nR. When the update completes, the menu bar displays the {S} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"Up to Date\". ","status_id":"3"},{"content":"\\---| scanning \\---| \n \nS: Start a custom scan that will take at least several seconds. \nR: See the radar sweep version of the {S} shield icon. \nS: Click on the men bar shield icon. \nR: The status is set to \"Scanning\". ","status_id":"3"},{"content":"\\---| AutoUpdate not configured \\---| \n \nS: Open SAV Preferences, go to the AutoUpdate tab and clear out the configuration details. \nR: Click on the shield icon and verify that status is set to \"AutoUpdate is Not Configured\". ","status_id":"3"},{"content":"\\---| SophosAutoUpdate not running \\---| \n\nS: Use Sophos ServiceManager.app to stop SophosAutoUpdate \nR: The shield icon shows with an {x}\nR: Shield status shows as \"AutoUpdate Is Not Running\". \n","status_id":"3"},{"content":"S: Use Sophos ServiceManager.app to start SophosAutoUpdate \nR. The menu bar displays the {S} shield icon. \nR: The status is set to \"Up to Date\". \n","status_id":"3"}]
custom_logs: <empty>
project_id: 2
test_ids: 4770
_token: eyAems14Ahh.6MyK9mlL
_version: 5.3.0.3603
defect_summary: Failed test: Status displayed in Menu Bar shield icon and shield drop-down menu
defect_project: MACEP
defect_issuetype: 1
defect_component: 13033
defect_priority: 5
defect_affects_version: 20376
defect_fix_version: 20376
defect_labels: TP2
defect_description: What's ES&C? Endpoint Security and Control? It probably isn't a good idea to refer to this using the product name since the product name keeps changing. Call it the 'Menubar shield icon", as you do elsewhere in the test.

T4770: Status displayed in Menu Bar shield icon and shield drop-down menu

field: project
---
Trace:
at Jira_REST_api->_throw_error (Jira_REST.php:1535)
at Jira_REST_api->_send_request (Jira_REST.php:1444)
at Jira_REST_api->_send_command (Jira_REST.php:1601)
at Jira_REST_api->add_issue (Jira_REST.php:795)
at Jira_REST_defect_plugin->push (defects.php:1108)
at Defects_controller->ajax_push (controller.php:257)
at Controller->_invoke_web_call (controller.php:168)
at Controller->_invoke_web (controller.php:120)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)


#2

Hi DKim,

Thanks for your posting. This looks like the fields are not available for the user/issue type or screen and you would need to contact your JIRA administrator to look into this. TestRail can only show the response that’s returned from JIRA and it looks like our JIRA uses a very customized issue form. You can disable fields on the Push Dialog as follows as needed:

http://docs.gurock.com/testrail-integration/tools-jira-fields#displayed_fields

Cheers,
Tobias


#3

We figured out, that the User did not configure his JIRA credentials in the My Settings -> Settings tab.
Thanks.


#4

Hi DKim,

Great to hear that it works now!

Cheers,
Tobias