Search found 181 matches

by martins
Tue Jan 02, 2018 11:11 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: How to do math with decimals in Polarion
Replies: 2
Views: 174

Re: How to do math with decimals in Polarion

Having the Wiki Scripting Tools extension installed (see http://extensions.polarion.com/extensions/83-wiki-scripting-tools) you can use the $mathTool to perform several calculations, e. g.: #set($f_complexity = $mathTool.toDouble($wi.getCustomField("complexity"))) In current versions of Po...
by martins
Thu Nov 30, 2017 2:48 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Passing javascript variable to velocity variable templete
Replies: 1
Views: 367

Re: Passing javascript variable to velocity variable templete

I don't understand what's your intention. Maybe you can describe your usecase more in detail.

Javascript code is normaly executed on client side (in the user's web browser) but velocity code is already executed on server side before the webserver delivers the content to the browser.

Martin
by martins
Thu Nov 30, 2017 2:16 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Iterating through project roles
Replies: 1
Views: 350

Re: Iterating through project roles

If you just want to check if a user has a certain role you can do it like this

Code: Select all

#if($role.contains("project_developer"))
   ## code for all project developers
#if($role.contains("project_user"))
   ## code for all project users
#else
   ## code for all other users
#end

Martin
by martins
Tue Aug 08, 2017 12:25 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Sending emails from Job
Replies: 4
Views: 708

Re: Sending emails from Job

Googling for "can only send rfc 2822 messages" gives as first result: "Address in mailbox given does not comply with RFC 2822" So it looks like there's a problem with the email address you are trying to send the email to. Try to use an address in the format "name@domain.com&...
by martins
Tue Aug 08, 2017 12:19 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: How do check if a work item exists
Replies: 2
Views: 1438

Re: How do check if a work item exists

In some cases it's a good idea in addition to check with IWorkItem.can().read() if the user is permitted to read the workitem. Otherwise your wiki page might fail because of lacking permissions.

Martin
by martins
Tue Aug 01, 2017 2:13 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Sending emails from Job
Replies: 4
Views: 708

Re: Sending emails from Job

We use Javascript for some jobs to send email notification. The following Javascript code works fine for me: var anonservice = com.polarion.platform.core.PlatformContext.getPlatform().lookupService(com.polarion.platform.announce.IAnnouncerService.class); var anon = new com.polarion.platform.announce...
by martins
Fri Feb 17, 2017 12:43 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: create hyperlinks to work item tracker view
Replies: 2
Views: 1256

Re: create hyperlinks to work item tracker view

Hello, the ".getProject()" method returns an object of type "ITrackerProject", therefore your "$proj" is an object and not a string. You better use method ".getProjectId()" which returns a string, or you have to write "$proj.getId()" in your second l...
by martins
Thu Feb 16, 2017 3:37 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: edit home page in "project group"
Replies: 2
Views: 761

Re: edit home page in "project group"

The home page of a project group is the same as the home page of your repository.

It's a pity that you can't define own pages for a project group :(

Martin
by martins
Thu Feb 16, 2017 3:00 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: list in wiki with "expand=no" appears expanded in pdf export
Replies: 1
Views: 828

Re: list in wiki with "expand=no" appears expanded in pdf export

Hi, What do you expect??? A button to click and dynamically show the content in your PDF document? In a PDF document this doesn't work because PDF is a fixed layout, intented for printing. In your Wiki page you can define different ways for rendering your information - either on screen or in PDF exp...
by martins
Thu Feb 16, 2017 2:30 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Display enum values based on dependencies
Replies: 1
Views: 747

Re: Display enum values based on dependencies

To build such a dependency list you would need the IRelationMapping interface, see http://almdemo.polarion.com/polarion/sdk/doc/javadoc/com/polarion/subterra/base/data/model/IRelationMapping.html But, as stated in the description, This interface is not intended to be implemented by clients. Therefor...
by martins
Thu Feb 16, 2017 1:13 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: change workitem title
Replies: 1
Views: 740

Re: change workitem title

Modification of a workitem must be done in a transaction, therefore you have to write something like $transactionService.beginTx() $wi.setTitle("new Title") $wi.createComment(com.polarion.core.util.types.Text.plain("your comment text"),"title of your comment",null) ... ...
by martins
Thu Feb 16, 2017 12:52 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: wiki time point closed
Replies: 1
Views: 698

Re: wiki time point closed

The ITimePointsManager includes the function you are looking for: getClosedTimePoints IPObjectList getClosedTimePoints(IContextId contextId, java.lang.String sort, boolean traverseDown) Returns all closed time points applicable to given context. Traverses both up and down in the hierarchy (if select...
by martins
Thu Feb 16, 2017 12:36 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Permissions
Replies: 2
Views: 837

Re: Permissions

Hi,

You better use the Work Items > Read-only Fields configuration.

Here you can define that in status "reviewed" all fields (except status and approvals) become read-only.

This should solve your problem.

Martin
by martins
Tue Dec 06, 2016 10:51 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Buttons in Classic Wiki Pages
Replies: 2
Views: 5219

Re: Buttons in Classic Wiki Pages

Code: Select all

<input type="button" onclick="alert('Hello World!')" value="click me">
works fine.
So where's your problem?
by martins
Tue Dec 06, 2016 8:55 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Change Custom Field
Replies: 1
Views: 6358

Re: Change Custom Field

Hello Lutz, You have to tell the setCustomField function what type of content you like to write to the rich text field. Within a hook script you do this either with workItem.setCustomField("myField",com.polarion.core.util.types.Text.plain("just plain text")); or workItem.setCusto...

Go to advanced search