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

TestRails and jira Push integration error



I’m trying to use push button in Testrails, but in logs I get a error. But References works just fine.
why is that? I have testrails server version

[HttpException] Could not resolve host: <your-server>; Unknown error

Details: <missing>
File: /var/www/testrail/sys/helpers/ex.php
Line: 25
Status Code: 500
Host: testrails.just.sise
Uri: /index.php?/defects/ajax_prepare_push (POST)

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
PHP: 5.4.16
Server: Linux 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64

status_id: 1
assignedto: <empty>
comment: <empty>
version: <empty>
elapsed: <empty>
defects: <empty>
attachments: <empty>
project_id: 3
test_ids: 392324
_token: Tbv31Ox4nM29GAakYmDk

at ex::raise (ex.php:25)
at ex::raise (http.php:219)
at http::request_ex (Jira_REST.php:1481)
at Jira_REST_api->_send_request (Jira_REST.php:1444)
at Jira_REST_api->_send_command (Jira_REST.php:1006)
at Jira_REST_api->get_projects (Jira_REST.php:650)
at Jira_REST_defect_plugin->prepare_field (defects.php:682)
at Defects_controller->_prepare_form (defects.php:731)
at Defects_controller->ajax_prepare_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)


Hey there,

Thanks for the post. There are two integrations that work in tandem with any of the TestRail defect plugin integrations: the URL setup which allows for the simple links to create issues and use the ID to link directly to them, and the defect plugin, which uses the issue tracker’s API to push issues directly to Jira. Based on the details and the error you’re receiving, it sounds like you’ve got the URL part of the integration set up properly, but the defect plugin integration doesn’t have the Jira server URL defined correctly, which is why you’re seeing the Could not resolve host: <your-server> error.

To get this working, head to the Administration > Integrations page, and in the large text field with your ensure your Jira details are correct, particularly the URL section:

Once you have that set up with the proper URL to your issue tracker the Push function should start working as expected. If you continue to have issues feel free to reply back here or reach out to the support team directly at


On Defect Add Url value I have!default.jspa

and on address=

The add url link works fine and for that I think that address value should also be correct. Or I’m missing something for your previous statement?


Hi Valme,

Thank you for posting! The Defect Add URL value is used for the Add feature rather than the Push feature. When configuring the JIRA integration, you need to use the web address of your JIRA instance instead of ‘your-server’ and this should be added to address field in the defect plugin configuration settings on the Administration > Integration page. You can also find the complete instructions for configuring the JIRA integration on our website here:

If the settings under Administration > Integration have been entered correctly, it is possible that you have configured a project level integration. Any project level integration settings would override the global integration settings. Project level integrations are configured on the Defects and References tabs of the Edit Project page and you can reach this from Administration > Projects. If you are still unsure or are experiencing issues when you try to use the push feature, please send the following to the support team at so we can further review:

  • A screenshot of the Administration > Integration page (the full page please including the navigation bar above)
  • A screenshot of your profile > My Settings > Settings tab in TestRail
  • A screenshot of the error message in TestRail

I hope this helps!