MantisBT - TestLink
View Issue Details
0008742TestLinkBug Tracking System - JIRA Integrationpublic2019-08-20 09:322019-09-17 10:42
premnath 
fman 
normalmajoralways
resolvedunable to reproduce 
1.9.19 (2019 Q1) 
 
MySQL
Google Chrome V 76
TBD
0008742: 0008689: Jira (Interface: rest) "Test Connection KO" in 1.9.19 (Metonic) version.
We are using Test Link v1.9.19 (Metonic). When I tried to configure Incident Tracker ‘Jira’ for one of my projects, I’m getting ‘Test Connection KO’.

I could able to see the below warning message in the Events log:

 E_WARNING Missing argument 3 for jirarestInterface::__construct(), called in C:\xampp\htdocs\testlink\lib\issuetrackers\issueTrackerCommands.class.php on line 268 and defined - in C:\xampp\htdocs\testlink\lib\issuetrackerintegration\jirarestInterface.class.php - Line 34

 E_WARNING issueTrackerInterface::setCfg(): Cannot assign to an array of nodes (duplicate subnodes or attr detected) - in C:\xampp\htdocs\testlink\lib\issuetrackerintegration\issueTrackerInterface.class.php - Line 143

 My Jira (Interface:rest) configuration are as follows:

 <issuetracker>
 <username>username</username>
 <password>password</password>
 <uribase>https://fast.atlassian.net</uribase> [^] [^]
 <uriapi>https://fast.atlassian.net/rest/api/latest/</uriapi> [^] [^]
 <uriview>https://fast.atlassian.net/browse/</uriview> [^] [^]
 <userinteraction>1/0</userinteraction>
 <!-- Configure This if you want be able TO CREATE ISSUES -->
 <projectkey>DSRC</projectkey>
 <userinteraction>1</userinteraction>
 </issuetracker>

 Whereas, I have configured similar Jira interface for some of my other projects and the connection is fine with it. Can you please let me know what could be the problem?
Navigate to Issue Tracker Management
 Click on Create button
 Enter Issue tracker name
 Select the Issue Tracker type as Jira (interface:rest)
 Type in the below configuration
 <issuetracker>
 <username>username</username>
 <password>password</password>
 <uribase>https://fast.atlassian.net</uribase> [^] [^]
 <uriapi>https://fast.atlassian.net/rest/api/latest/</uriapi> [^] [^]
 <uriview>https://fast.atlassian.net/browse/</uriview> [^] [^]
 <userinteraction>1/0</userinteraction>
 <!-- Configure This if you want be able TO CREATE ISSUES -->
 <projectkey>DSRC</projectkey>
 <userinteraction>1</userinteraction>
 </issuetracker>

 Click on 'Save'
 Click on 'Check Connection' button
No tags attached.
Issue History
2019-08-20 09:32premnathNew Issue
2019-08-20 19:16fmanNote Added: 0029109
2019-08-20 19:17fmanQA Team - Task Workflow Status => TBD
2019-08-20 19:17fmanStatusnew => resolved
2019-08-20 19:17fmanResolutionopen => unable to reproduce
2019-08-20 19:17fmanAssigned To => fman
2019-08-21 05:50premnathNote Added: 0029110
2019-09-17 10:42fmanNote Added: 0029164

Notes
(0029109)
fman   
2019-08-20 19:16   
If you have other project working OK, the easy way to go is to compare the configuration


surely this part of configuration is not OK
<userinteraction>1/0</userinteraction>

this has to be
<userinteraction>1</userinteraction>

or
<userinteraction>0</userinteraction>
(0029110)
premnath   
2019-08-21 05:50   
Hi, I have tried changing the configuration as mentioned by you, but still connection couldn't be established. Whereas, the same configuration is still working perfect for my old projects.

I tried changing <userinteraction>1</userinteraction> as well as <userinteraction>0</userinteraction>

<issuetracker>
<username>test.t@test.co.in</username>
<password>test</password>
<uribase>https://fast.atlassian.net/</uribase> [^]

<uriapi>https://fast.atlassian.net/rest/api/latest/</uriapi> [^]
<uriview>https://fast.atlassian.net/browse/</uriview> [^]
<userinteraction>1</userinteraction>

<!-- Configure This if you want be able TO CREATE ISSUES -->
<projectkey>AM</projectkey>
</issuetracker>
(0029164)
fman   
2019-09-17 10:42   
any news?