Hello
How to update description and contents of a workitem from velocity script?
Update workitem from velocity script
Re: Update workitem from velocity script
https://almdemo.polarion.com/polarion/sdk/doc/javadoc/com/polarion/alm/ws/client/types/tracker/WorkItem.html
Just an example
Maybe this helped
Code: Select all
$transactionService.beginTx()
#set($newDate = "2018-08-20")
#set( $wis= $trackerProject.queryWorkItems("dueDate:$newDate", "id") )
#foreach ($wi in $wis)
#Get the old title
$wi.getTitle()
$wi.setTitle("This is the new title")
$newWorkitem.setDueDate($objectFactory.newDateOnly($dateTool.toDate("yyyy-MM-dd", $newDate)))
#set( $description = "<h1>This as a description</h1>" )
$newWorkitem.setDescription($objectFactory.newHtmlText($description))
#set( $assignee = $projectService.getUser("....userid....."))
#set( $dummy = $newWorkitem.addAssignee($assignee))
$wi.save()
#end
$transactionService.commitTx()
Just an example
Maybe this helped
Return to “Polarion Application Lifecycle Management (ALM)”
Who is online
Users browsing this forum: No registered users and 7 guests