Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007346TestLinkBug Tracking System - JIRA Integrationpublic2015-11-19 14:212015-11-25 06:34
Assigned Tofman 
PrioritynormalSeverityfeature requestReproducibilityalways
PlatformLinuxOSCentosOS Version6.5
Product Version1.9.14 (2015 Q3) 
Fixed in Version 
Summary0007346: JIRA REST - expose Sprint field to create issue form
I'm using the testlink 1.9.14 Padawan version. I log bugs directly to JIRA via the issuetracker using rest api.
I would like to add the Sprint field to the create issue form to the fields that are already present.
I have attempted to replicate the code that was used to add Components and Versions to the create issue form, however that is not working for me. I have edited the following files:


Perhaps I am missing something and there is more to it.

I'm work in QA and am not a programmer, so I have limited experience in coding.

Is there a special API for getting the Sprint values related to a project?
Steps To ReproduceExecute a testcase and fail it.
Link on the Add bug link which will open up the create issue form.
On this form there is no sprint field, I would like to add the sprint field here.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
PHP Version
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
fman (administrator)
2015-11-20 19:52

>> Is there a special API for getting the Sprint values related to a project?
you can look for answer on jira documentation
fman (administrator)
2015-11-20 19:53

if you do not provide the code you have changed how will be possible to read it in order to understand what is wrong ( If someone have time for do this) ?
fman (administrator)
2015-11-20 20:32
edited on: 2015-11-20 20:36 [^]

{"views":[{"id":1,"name":"SCRUM20NOV board","canEdit":true,"sprintSupportEnabled":true,"showDaysInColumn":false}]} [^]

{"maxResults":50,"startAt":0,"isLast":true,"values":[{"id":1,"self":"","state":"future","name":"Sprint [^] ONE","originBoardId":1},{"id":2,"self":"","state":"future","name":"Sprint [^] TWO","originBoardId":1}]}

fman (administrator)
2015-11-20 20:33 [^] [^]
faulty (reporter)
2015-11-24 22:50


I used your link above that describes the Jira REST api. The following uri will list the sprints within the rapdiview id I want -


But is it possible to integrate this into testlink code? Will testlink handle the greenhopper call?

I was going to add a similar function as this is the third_party/fayp-jira-rest/Jira.php called getSprints.

public function getComponents($projectKey)
        $uri = $this->host . "project/{$projectKey}/components";
        $this->request->openConnect($uri, 'GET');
        $items = json_decode($this->request->getResponseBody());

            return $items;
            // ATTENTION \Exception in order to use PHP object.
            $msg = "Error Processing Request - " . __METHOD__ . ' ' .
                   implode('/', $items->errorMessages);
            throw new \Exception($msg, 999);

I would change the uri request to
$uri = $this->host . "rest/greenhopper/1.0/sprintquery/217?includeFutureSprints=true&includeHistoricSprints=false";

But I dont think it is as easy as this ?
fman (administrator)
2015-11-25 06:34

You need to spend some time trying and experimenting, is only way to go.
Other option is to request custom development paying for it.

- Issue History
Date Modified Username Field Change
2015-11-19 14:21 faulty New Issue
2015-11-19 14:58 faulty Note Added: 0024271
2015-11-20 19:52 fman Note Added: 0024279
2015-11-20 19:52 fman QA Team - Task Workflow Status => TBD
2015-11-20 19:52 fman Severity minor => feature request
2015-11-20 19:52 fman Steps to Reproduce Updated View Revisions
2015-11-20 19:52 fman Note Deleted: 0024271
2015-11-20 19:53 fman Note Added: 0024280
2015-11-20 19:57 fman Assigned To => fman
2015-11-20 19:57 fman Status new => feedback
2015-11-20 20:32 fman Note Added: 0024287
2015-11-20 20:33 fman Note Added: 0024288
2015-11-20 20:36 fman Note Edited: 0024287 View Revisions
2015-11-24 22:50 faulty Note Added: 0024302
2015-11-24 22:50 faulty Status feedback => assigned
2015-11-25 06:34 fman Note Added: 0024303

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker