Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008741TestLinkBug Tracking System - JIRA Integrationpublic2019-08-13 12:212019-08-15 19:20
Reportersachintha 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version1.9.19 (2019 Q1) 
Fixed in Version1.9.20 Raijing DEV 
Summary0008741: Not able to add Bug from Testlink to JIRA
DescriptionHi

Integrated JIRA from testlink using REST API. I was also able to link the failed testcase to a bug in JIRA.

But while trying to create issue in testlink there is a validation happening for Version field.

Below are the fields required for creating issue in testlink.

Version

Version has to autopopulate with data. But not sure what data needs to be populated. Whenever I type in any data, it shows no match found and field becomes empty. Thereby, the form is not allowed to submit. Could you please let me know what data is needed for Version field.

Thanks,
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Filespng file icon 1.PNG [^] (35,117 bytes) 2019-08-13 12:21


? file icon bugAdd.tpl [^] (6,842 bytes) 2019-08-13 19:42

- Relationships
child of 0008549assignedfman Availables hot-fixes for 1.9.19 & How To get full fixed package from GitHub 

-  Notes
(0029083)
sachintha (reporter)
2019-08-13 12:23

OS - WINDOWS 10
(0029085)
fman (administrator)
2019-08-13 13:28

please follow the de facto standard for issue reporting:
in this site (mantis.testlink.org)
-remove any status filter
- search for similar issues
(0029086)
fman (administrator)
2019-08-13 13:28

version is got from your Jira Testlink Configuration
(0029088)
sachintha (reporter)
2019-08-13 17:57

<issuetracker>
<username>username</username>
<password>password</password>
<uribase>http://localhost:8085/</uribase> [^]
<uriwsdl>http://localhost:8085/rpc/soap/jirasoapservice-v2?wsdl</uriwsdl> [^]
<uriview>http://localhost:8085/browse/</uriview> [^]
<uricreate>http://localhost:8085/secure/CreateIssue!default.jspa</uricreate> [^]
<projectkey>TES</projectkey>
<userinteraction>0</userinteraction>
<issuetype>TES-1</issuetype>
<issuepriority>1</issuepriority>
</issuetracker>

i used this configuration and connection is ok but after run and going to create issue it asks the above validation (Screenshot)
(0029089)
fman (administrator)
2019-08-13 19:33

my note is wrong, version is got asking to JIRA.
But I'm going to check the conditions to display Version.
(0029092)
fman (administrator)
2019-08-13 19:41

1. remove all files from [TESTLINK INSTALL DIR]/gui/templates_c
2. search the file bugAdd.tpl
3. backup it
4. replace it with the attached file

retest and provide feedback
(0029094)
sachintha (reporter)
2019-08-14 12:18

Thanks for the all reply, after 5hrs of searching found the solution
-- Change the connection configuration with ADDING VERSION TAG--

<issuetracker>
<username>username</username>
<password>password</password>
<uribase>http://localhost:8085/</uribase> [^]
<uriwsdl>http://localhost:8085/rpc/soap/jirasoapservice-v2?wsdl</uriwsdl> [^]
<uriview>http://localhost:8085/browse/</uriview> [^]
<uricreate>http://localhost:8085/secure/CreateIssue!default.jspa</uricreate> [^]
<projectkey>TES</projectkey>
<userinteraction>0</userinteraction>
<issuetype>TES-1</issuetype>
<issuepriority>1</issuepriority>
<attributes>
<versions>1.0</versions>
</attributes>
</issuetracker>

(make sure when you change the configuration in testlink logout and relog the testlink)

then that version will load the version field.
when you report the bug you can select that version number
(0029096)
fman (administrator)
2019-08-14 15:00

Please provide me feedback regarding the solution I've provided i.e. changing the bugAdd.tpl template, it's very important.
(0029101)
fman (administrator)
2019-08-14 17:35

<!-- Template jirarestInterface -->
<issuetracker>
<username>JIRA LOGIN NAME</username>
<password>JIRA PASSWORD</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<!-- CRITIC - WITH HTTP getIssue() DOES NOT WORK -->
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<uriview>https://testlink.atlassian.net/browse/</uriview> [^]
<userinteraction>1/0</userinteraction>
<!-- 1: User will be able to manage following attributes from GUI -->
<!-- Issue Type, Issue Priority, Affects Versions, Components -->
<!-- 0: values for attributes will be taken FROM this config XML from GUI -->
(0029104)
fman (administrator)
2019-08-14 20:37

Since next version:
<!-- Template jirarestInterface -->
<issuetracker>
<username>testlink.forum@gmail.com</username>
<password>Jh61eXvGO6dbgLepFlhT279D</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<!-- CRITIC - WITH HTTP getIssue() DOES NOT WORK -->
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<uriview>https://testlink.atlassian.net/browse/</uriview> [^]
<userinteraction>0</userinteraction>
<projectkey>ZOFF</projectkey>
<issuetype>3</issuetype>
<issuepriority>3</issuepriority>

<version>10000</version>
<version>10300</version>
<component>10100</component>
<component>10101</component>

</issuetracker>
(0029105)
sachintha (reporter)
2019-08-15 03:10
edited on: 2019-08-15 03:13

i tried that i.e. changing the bugAdd.tpl template (Note number - 0029092)
its not working,version number not populated

(0029107)
fman (administrator)
2019-08-15 18:06

well, IMHO it's near impossible that fix did not work, anyway I'm doing a complete refactoring of the logic.
Please pay attention to note 29104
(0029108)
fman (administrator)
2019-08-15 19:19

https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/855bade28e84ac234fabc8f9d55ed23d0595e990 [^]

https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/f7101f935ae77158cbd48398dc8b4a436ec47802 [^]

- Issue History
Date Modified Username Field Change
2019-08-13 12:21 sachintha New Issue
2019-08-13 12:21 sachintha File Added: 1.PNG
2019-08-13 12:23 sachintha Note Added: 0029083
2019-08-13 13:28 fman Note Added: 0029085
2019-08-13 13:28 fman Assigned To => fman
2019-08-13 13:28 fman Status new => feedback
2019-08-13 13:28 fman Note Added: 0029086
2019-08-13 17:57 sachintha Note Added: 0029088
2019-08-13 17:57 sachintha Status feedback => assigned
2019-08-13 19:33 fman Note Added: 0029089
2019-08-13 19:41 fman Note Added: 0029092
2019-08-13 19:42 fman File Added: bugAdd.tpl
2019-08-13 19:42 fman Status assigned => feedback
2019-08-14 12:18 sachintha Note Added: 0029094
2019-08-14 12:18 sachintha Status feedback => assigned
2019-08-14 15:00 fman Note Added: 0029096
2019-08-14 15:00 fman Status assigned => feedback
2019-08-14 17:35 fman Note Added: 0029101
2019-08-14 20:37 fman Note Added: 0029104
2019-08-15 03:10 sachintha Note Added: 0029105
2019-08-15 03:10 sachintha Status feedback => assigned
2019-08-15 03:13 sachintha Note Edited: 0029105 View Revisions
2019-08-15 18:06 fman Note Added: 0029107
2019-08-15 19:19 fman Note Added: 0029108
2019-08-15 19:20 fman QA Team - Task Workflow Status => TBD
2019-08-15 19:20 fman Fixed in Version => 1.9.20 Raijing DEV
2019-08-15 19:20 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2019-08-15 19:20 fman Status assigned => resolved
2019-08-15 19:20 fman Resolution open => fixed
2019-08-15 19:20 fman Relationship added child of 0008549



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker