MantisBT - TestLink
View Issue Details
0008205TestLinkBug Tracking System - JIRA Integrationpublic2018-02-19 11:402018-04-15 10:36
WindowsWindows 10
1.9.16 (2016 Q4) 
1.9.17 (2018 Q1) 
0008205: Error while checking TestLink connection with JIRA using REST interface.
Hi I am trying to connect TestLink with JIRA.
I am using JIRA REST interface.
I get error message while checking connection.
After creating Jira tracker and on successful save environment displays OK but while checking connection it gives Fatal error.

1.Login to TestLink
2.Navigate to Issue Tracker Management and created a new Tracker with below code. Also select Type as jira(interface: rest)

<!-- Template jirarestInterface -->
<uribase></uribase> [^] [^]
<!-- CRITIC - WITH HTTP getIssue() DOES NOT WORK -->
<uriapi></uriapi> [^]
<uriview></uriview> [^]
<!-- Configure This if you want be able TO CREATE ISSUES -->

3.Save - displays Environment OK
4.Navigate back and click on Check Connection button.

Issue: Displays error message-
Fatal error: Uncaught ArgumentCountError: Too few arguments to function jirarestInterface::__construct(), 2 passed in D:\xampp\htdocs\Testlink\lib\issuetrackers\issueTrackerCommands.class.php on line 268 and exactly 3 expected in D:\xampp\htdocs\Testlink\lib\issuetrackerintegration\jirarestInterface.class.php:34 Stack trace: #0 D:\xampp\htdocs\Testlink\lib\issuetrackers\issueTrackerCommands.class.php(268): jirarestInterface->__construct(7, '<!-- Template j...') #1 D:\xampp\htdocs\Testlink\lib\issuetrackers\issueTrackerEdit.php(23): issueTrackerCommands->checkConnection(Object(stdClass), Array) 0000002 {main} thrown in D:\xampp\htdocs\Testlink\lib\issuetrackerintegration\jirarestInterface.class.php on line 34
Note: I have created a sample project on JIRA trial 4 days left.
I have used the attributes form JITA and used it in the above xml.
Jira integration, REST
png JIRATracker.png (58,627) 2018-02-19 11:40
Issue History
2018-02-19 11:40FerhanNew Issue
2018-02-19 11:40FerhanFile Added: JIRATracker.png
2018-02-19 11:44FerhanTag Attached: REST
2018-02-19 11:44FerhanTag Attached: Jira integration
2018-02-19 15:00fmanNote Added: 0027215
2018-02-19 15:01fmanAssigned To => fman
2018-02-19 15:01fmanStatusnew => feedback
2018-02-20 09:17FerhanNote Added: 0027219
2018-02-20 09:17FerhanStatusfeedback => assigned
2018-02-20 09:18fmanNote Added: 0027220
2018-02-20 09:18fmanQA Team - Task Workflow Status => READY FOR TESTING
2018-02-20 09:18fmanStatusassigned => resolved
2018-02-20 09:18fmanFixed in Version => 1.9.17 (2018 Q1)
2018-02-20 09:18fmanResolutionopen => fixed
2018-04-15 10:36fmanNote Added: 0027357
2018-04-15 10:36fmanStatusresolved => closed

2018-02-19 15:00   
Dear User:
I hope you can undestand that you have used a WRONG BUG with A WROGN Issue tracker system when adding comments on 0008007, making things IMPOSSIBLE for me
Please do not try to save time vampirizing other issues.

as usual recomendation is:
get latest code from github, do fresh install and retest
2018-02-20 09:17   
I took the latest code form Git hub(TestLink 1.9.17 [Dev](Alan Turing)) and re-installed TestLink. Created JIRA bug tracker using REST interface. Connection is successful and able to log bug form TestLink and the same is reflecting on JIRA.
One good thing I love is there is a link in TestLink to directly takes to JIRA bug page and also Link is available in JIRA to navigate to TestLink Test execution page.
2018-02-20 09:18   
great to know is working.
2018-04-15 10:36