Page 1 of 1

Where's the scripting reference guide for ALM 2016?

Posted: Fri Jul 08, 2016 12:46 pm
by elsammons
I am trying to use page and block script, I want to do some calculation in the page script and re-use the values later in block scripts.

The SDK guide here, http://almdemo.polarion.com/polarion/sd ... et-sdk.pdf is not very helpful and certainly not a good guide for anyone just starting out with Polarion scripts.

Re: Where's the scripting reference guide for ALM 2016?

Posted: Wed Jun 07, 2017 7:58 am
by bschorre
vote up

I also would have a better description of how to use or better TO DO the programming of a velocity widget. I would appreciate it when you offer some examples with
  • getting the project id
  • query some work items
  • adding a comment
  • approving a bundle of requirements

Best regards
bschorre

Re: Where's the scripting reference guide for ALM 2016?

Posted: Wed Jun 21, 2017 12:13 pm
by mariareese
helping me out at some points .. :D

Re: Where's the scripting reference guide for ALM 2016?

Posted: Wed Aug 02, 2017 11:44 pm
by JerryLlave
Another vote up for this. In addition, some example on how to look up

  • specific (user) roles per project and how to present that on a live report page
  • how to look up work item fields

This is the document I've found so far - and couldn't get any information on roles.

http://almdemo.polarion.com/polarion/sd ... mmary.html

For project ID in velocity, this is an example snippet which seems to work. Not sure if this would work for you too - but maybe worth trying?

###############################################################################
##
## Velocity Context - following objects are in the velocity context
##
## com.polarion.alm.shared.api.model.rp.RichPage $page
## com.polarion.alm.shared.api.model.project.Project $program
##
##
#set($program = $page.fields().project().get())
<b>Project:</b> $program.render().withIcon(true).withLinks()<br/>
<b>Project ID:</b> $program.fields().id().render()<br/>