Search found 181 matches

by martins
Wed Jan 21, 2015 6:36 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Can't find the document field for a WI
Replies: 5
Views: 4494

Re: Can't find the document field for a WI

Hello Dennis, because of historic reasons Polarion Documents are internally called "Modules". Therefore you need the method "IWorkItem.getModule()" to get a "IModule" object, which represents the document where the WorkItem is located in. IWorkItem.getModule().getModule...
by martins
Fri Jan 02, 2015 7:51 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Delete Assignees via script
Replies: 1
Views: 2533

Re: Delete Assignees via script

Hello Dennis,

you could use method "clear()" on the IPObjectList of workItem.getAssignees().

Code: Select all

workitem.getAssignees().clear();

Kind regards

Martin
by martins
Fri Jan 02, 2015 7:43 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Set author as assignee
Replies: 1
Views: 2434

Re: Set author as assignee

Hello Dennis, because Assignee is a multi value field there is no simple "setAssignee" method in the IWorkItem interface. Therefore you have to use method "addAssignee" to add an IUser object (not just the ID!) to the workitem. In your example workItem.addAssignee(workItem.getAut...
by martins
Fri Jan 02, 2015 7:31 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Why Pie2D is not shows
Replies: 2
Views: 2849

Re: Why Pie2D is not shows

Hello,

have you checked the return value of "$trackerService.dataService.getInstancesCount" by ouputting it directly to your wiki page?

Are you sure that your status IDs are "Draft" and "Open"? Not "draft" and "open"?

Kind regards

Martin
by martins
Fri Dec 19, 2014 7:44 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Filter with Assignee id
Replies: 2
Views: 3177

Re: Filter with Assignee id

Hello, your "myenumparam" is defined as a multi select. Therefore you have to implement this parameter in your query with $pageParameters.getAsString('myenumparam',' ') If you like to query for Assignees you have to use "assignee.id" instead of "user.id". The corrected ...
by martins
Fri Nov 28, 2014 6:50 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Get User names for particular project
Replies: 2
Views: 3236

Re: Get User names for particular project

{parameter-form} {parameter:myenumparam|type=user|multi=true} ## defines the parameter "myenumparam" to be a multi-select field including all project users * All USERS: {parameter-editor:myenumparam} ## renders the select box in UI $pageParameters.getAsString("myenumparam") ## r...
by martins
Thu Nov 27, 2014 9:00 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Interaction between pre-save & post-save scripts
Replies: 1
Views: 2689

Re: Interaction between pre-save & post-save scripts

Hello Dennis, I can't reproduce your error. For testing I've written a pre-save.js which reads and modifies the title of the workitem and a post-save.js which also reads modifies the description of the workitem. Both scripts work together perfect and the workitem is modified as expected. Kind regard...
by martins
Thu Nov 27, 2014 8:06 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Exception for Baseline creation
Replies: 1
Views: 3019

Re: Exception for Baseline creation

Hello Vijay, same problem as in your previous post http://forums.polarion.com/viewtopic.php?f=5&t=96871 Most modifications within Polarion (e. g. create or modify a workitem, document, baseline...) have to be embedded within a transaction. See the API of ITransactionService: http://almdemo.polar...
by martins
Mon Nov 17, 2014 7:02 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: create button for baseline
Replies: 3
Views: 4111

Re: create button for baseline

Hello Vijay,

there's a workflow function to create a new baseline in the extension portal:
http://extensions.polarion.com/extensio ... e-baseline

The included source code might help you tou implement the functionality in your own extension.

Martin
by martins
Wed Nov 12, 2014 8:01 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Finding if a user belongs to a project via the API
Replies: 1
Views: 3002

Re: Finding if a user belongs to a project via the API

Hello Dennis, to check a users roles you need the ISecurityService securityService = trackerService.getDataService().getSecurityService(); There you find a method "getContextRolesForUser" which expects a string representing the user id and a context id. The id for the current user you can ...
by martins
Fri Nov 07, 2014 7:55 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Trouble using LinkedWorkItemStatus condition
Replies: 2
Views: 2631

Re: Trouble using LinkedWorkItemStatus condition

Hello Dennis, have you checked the logfiles if there is an error when you perform the transition? I'm not sure about correct usage of this condition but I assume it might have to do with the values you entered for the "link.roles" and "back.link.roles" parameters. In reference to...
by martins
Fri Nov 07, 2014 7:39 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Access LinkedWorkItems in scripts
Replies: 2
Views: 2776

Re: Access LinkedWorkItems in scripts

Hello Dennis, your var "linkWI" is of type "IWorkItem". Therefore you can use all methods listed in http://almdemo.polarion.com/polarion/sdk/doc/javadoc/com/polarion/alm/tracker/model/IWorkItem.html e. g. getTitle(), getType(), getStatus(), getDescription(), getURI(), ... getWork...
by martins
Tue Nov 04, 2014 8:58 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Script not Interpreted on Export
Replies: 1
Views: 2570

Re: Script not Interpreted on Export

Hello Dani, I assume you try to export a Document (not a Wiki-Page), correct? Have you got some Wiki content within your Document? I assume no. So this is a really stupid bug within Polarion (DPP-38056) which exists at least since 2012 but Polarion is not able or willing to fix it :( : Velocity code...
by martins
Tue Nov 04, 2014 7:52 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Set workitem to new status on approval
Replies: 3
Views: 4865

Re: Set workitem to new status on approval

Hello Dennis, AFAIK there is no method "setStatus" for the IWorkItem object. To change the status of a Workitem you have to perform a workflow transition. Therefore you have to use the method "performAction". But first you have to check if the requested action is allowed with met...

Go to advanced search