trackerService in javascript block

Description
thomas.boll
Posts: 7
Joined: Wed Sep 02, 2015 12:34 pm

trackerService in javascript block

Postby thomas.boll » Fri Jul 07, 2017 1:16 pm

Hello,

can someone help me how to use the $trackerServer in javaScript block.
I what to modify something in a Workitem, when I click on a button.

Code: Select all

<button id="button1" onclick="ChangeState('$wi.getId()');">Click</button>
<script type="text/javascript">
   function ChangeState(wi)
   {
      Change state of workitem wi
   }
</script>
 


Hope someone has already a solution for that.

Best regards
Thomas

smarty
Posts: 42
Joined: Fri Jan 18, 2013 4:43 pm
Location: Germany / Frankfurt
Contact:

Re: trackerService in javascript block

Postby smarty » Fri Jul 14, 2017 5:45 pm

Hello Thomas,
this post has an example, based on the FMC Workitemsave extension

Regards, Martin
My environment: Polarion ALM 2016 SR2 on Windows Server 2008,
Polarion-JIRA Connector to JIRA 7.x


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests