Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007757TestLinkBug Tracking System - JIRA Integrationpublic2016-11-24 03:452017-05-01 09:22
Assigned Tofman 
PriorityhighSeveritymajorReproducibilityhave not tried
PlatformOSOS Version
Product Version1.9.15 (2015 Q4) 
Fixed in Version1.9.16 (2016 Q4) 
Summary0007757: Jira issues updated with Jira integration user instead of the actual testlink user
DescriptionWe are using REST API for integrate Jira with Jira username and password. When we update any Jira issue from Testlink, its updating with Jira integration user(admin) instead of the actual Jira user. How can we change this to Jira actual user instead of integrated user.
Steps To ReproduceIntegrate Jira using REST API with jira username and password.
Update Jira issue from Testlink.
TagsNo tags attached.
Database (MySQL,Postgres,etc)Mysql
PHP Version5.6
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships
related to 0007761closedfman Issue add failure versions FIELD 
related to 0007929closedfman Create issue from testlink use wrong username: integration user instead current user 

-  Notes
fman (administrator)
2016-11-24 10:51

if TestLink login name = JIra Login name, API call send to JIRA this loginname using filed reporter
(you can see this on line 603
jirarestinterface.class.php line 389

please test and provide feedback
vinu.vincent (reporter)
2016-11-24 11:27

You mean the following lines in jiraresrinterface.class.php ?

 if(property_exists($opt, 'reporter'))
          $issue['fields']['reporter'] = array('name' => (string)$opt->reporter);

And the following lines in ?

 $issueText = generateIssueText($dbHandler,$argsObj,$itsObj);

Let me know what changes i need to made on these?
fman (administrator)
2016-11-25 08:54

what you need is to configure TestLink login name = JIra Login name, then things has to work.
just to be sure you can put some dump on code to see if property has a value and value is ok
vinu.vincent (reporter)
2016-12-01 08:40

I have kept my jira username and testlink username as same. But still when i update issue from Testlink, it is showing the integration username instead of my name. Do we need to keep the password also same? Do we need any code change for taht?
vinu.vincent (reporter)
2016-12-05 09:35

I have kept both username and password same as Jira in testlink. But still my issue update showing my integrated username instead of the actual username. Do i need to change any code or any other config to make it working?
fman (administrator)
2016-12-06 23:09

IMHO this depends of rights that user you are using to integrate with JIRA has.
this user need to have the power to change reporter
vinu.vincent (reporter)
2016-12-20 07:06

We have integrated with Jira by administrator user. So the user have full privileges to Jira system. I have kept the same username in Testlink but still the modified jira tickets showing updated by integrated user instead of actual user.
vinu.vincent (reporter)
2016-12-21 09:10

Hi fman - To be a little more clear on this issue, let me put down the steps to repr0duce:-

1. I create a JIRA account for myself as an admin, and also to my colleague with the same admin credentials.

2. The UN/PW are different, but made sure the Testlink(TL) and JIRA UN's are in sync for my colleague and mine.

3. Now later when my colleague creates an issue from the TL, the Reporter Name displays his name (which is correct), but in the Activity Log of JIRA, just below the Bug details page it displays:-
***Created Issue with my name instead of my colleague's Name
***Also any comments that are put for the Bug on TL gets reflected on the JIRA agai with my name
***If the comments are directly entered in JIRA, it then shows my colleague's name.

So how could I handle this scenario of displaying the Reporter's name instead of my name every time an issue is created and commented...
fman (administrator)
2016-12-21 14:41

UserID in TESTLINK has to be EQUAL to UserID on JIRA, for all users that use TestLink and Jira
vinu.vincent (reporter)
2016-12-22 11:28

True! Both the username's in JIRA and TESTLINK are created same and equal!
fman (administrator)
2016-12-22 14:21

meanwhile give a look to [^]
fman (administrator)
2016-12-24 14:09

Doing some searches I've got this info: [^]

The REST API respects the way Jira works on the front-end, so if the user can't do something in the UI, REST won't let them either.
fman (administrator)
2016-12-24 14:11 [^]
fman (administrator)
2016-12-24 14:46
edited on: 2016-12-24 14:47

I'using latest code from github.

testlink.jira => exists on testlink and jira

<uribase></uribase> [^]
<uriapi></uriapi> [^]
</issuetracker> => user on JIRA with password jira.fm5n

see [^] [^]

everything worked as expected

fman (administrator)
2016-12-25 18:19

This [^]

regards JIRA projects where reporter field is not present on CREATE ISSUE SCREEN
fman (administrator)
2017-01-14 18:05

no more user feedback
fman (administrator)
2017-01-22 07:57

1.9.16 released

- Issue History
Date Modified Username Field Change
2016-11-24 03:45 vinu.vincent New Issue
2016-11-24 10:51 fman Note Added: 0025632
2016-11-24 10:51 fman Assigned To => fman
2016-11-24 10:51 fman Status new => feedback
2016-11-24 11:27 vinu.vincent Note Added: 0025633
2016-11-24 11:27 vinu.vincent Status feedback => assigned
2016-11-25 08:54 fman Note Added: 0025635
2016-11-25 08:55 fman Status assigned => feedback
2016-12-01 08:40 vinu.vincent Note Added: 0025652
2016-12-01 08:40 vinu.vincent Status feedback => assigned
2016-12-05 09:35 vinu.vincent Note Added: 0025654
2016-12-06 23:09 fman Note Added: 0025656
2016-12-06 23:10 fman Status assigned => feedback
2016-12-20 07:06 vinu.vincent Note Added: 0025749
2016-12-20 07:06 vinu.vincent Status feedback => assigned
2016-12-21 09:10 vinu.vincent Note Added: 0025757
2016-12-21 14:41 fman Note Added: 0025759
2016-12-21 14:41 fman Status assigned => feedback
2016-12-22 11:28 vinu.vincent Note Added: 0025766
2016-12-22 11:28 vinu.vincent Status feedback => assigned
2016-12-22 14:21 fman Note Added: 0025769
2016-12-24 14:09 fman Note Added: 0025778
2016-12-24 14:11 fman Note Added: 0025779
2016-12-24 14:46 fman Note Added: 0025780
2016-12-24 14:47 fman Note Edited: 0025780 View Revisions
2016-12-24 14:47 fman Status assigned => feedback
2016-12-24 14:49 fman Relationship added related to 0007761
2016-12-25 18:19 fman Note Added: 0025786
2017-01-14 18:04 fman QA Team - Task Workflow Status => TBD
2017-01-14 18:04 fman Fixed in Version => 1.9.16 (2016 Q4)
2017-01-14 18:05 fman Note Added: 0025840
2017-01-14 18:05 fman Status feedback => resolved
2017-01-14 18:05 fman Resolution open => fixed
2017-01-22 07:57 fman Note Added: 0025865
2017-01-22 07:57 fman Status resolved => closed
2017-05-01 09:22 fman Relationship added related to 0007929

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker