Polarion SDK API getWorkItem()

Description
adbarads
Posts: 5
Joined: Mon Nov 13, 2017 7:47 pm

Polarion SDK API getWorkItem()

Postby adbarads » Mon Nov 20, 2017 5:02 pm

I have a question about the Polarion SDK API

I am in a Project -> Documents and Pages -> Testing.
From there I created a new wiki article.
In the editing of the article I did the following:

1) created a sql query using: #set ($sql_result = $sqlService.executeQuery("<sql query here>")
The sql query produces an array that looks like this:
[[project.c_id, test_cases.c_id , test_cases count ], [project.c_id, test_cases.c_id , test_cases count ], [project.c_id, test_cases.c_id , test_cases count ], [project.c_id, test_cases.c_id , test_cases count ]]

2) Now I would like to iterate through this multi-dimensional array by doing this:

#foreach($item in $sql_result)
$getWorkItem($item.get(0), $item.get(1)) <br>
#end

Unfortunately, Polarion does not appear to recognize the $getWorkItem(). I am pretty newbie at this, I'm sure I'm just calling the function incorrectly. Any help will be greatly appreciated.

adbarads
Posts: 5
Joined: Mon Nov 13, 2017 7:47 pm

Re: Polarion SDK API getWorkItem()

Postby adbarads » Wed Nov 29, 2017 12:59 pm

I'll answer my own question, as it took my a while to find the answer

$trackerService.getWorkItem()


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 6 guests