Resolve module verdict comment ?

Posts: 1
Joined: Sun Sep 23, 2018 6:23 am

Resolve module verdict comment ?

Postby riimala » Sun Sep 23, 2018 6:37 am


Document in review and signed with verdict comment. I need help for resolving verdict comment via java script code.

My multiple trials haven't succeded.... here's relevant code snipset below. Else part vComment.setResolvedComment(true); is executed without problems, but still cannot get verdict comment resolved.. ... ature.html ..

Code: Select all

var sigWf = target.getWorkflowSignatures();

        //iterating over response object having list.
        for (var a = 0; a < sigWf.length; a++) {
            var listOfSignatures = sigWf[a].getSignatures();
            for (var b = 0; b < listOfSignatures.length; b++) {
                var vComment = listOfSignatures[b].getVerdictComment();

                if (!vComment)
                    target.setCustomField("debug", "signature null");

                    var resolveMe = vComment.getText().getContent();
                    target.setCustomField("v-comment, ", "Verdict comment resolved, text " + resolveMe );

Posts: 11
Joined: Thu Jan 18, 2018 11:02 am
Location: Frauenauracher Str. 85, 91056 Erlangen

Re: Resolve module verdict comment ?

Postby PatrickClaus » Thu Oct 04, 2018 1:39 pm

On first glance, both the Workitem Object and the ICommentBase Object from Signature.getVerdictComment() have a .save method.

When you use the setter methods, you are modifying the local instances of the objects, not the one in your repo. I think this is the case here as well.
To make the changes reflect on your repo, I'd suggest you have to open a transaction and save them explicitly.

Like this:

var txService = com.polarion.platform.core.PlatformContext.getPlatform().lookupService(com.polarion.platform.ITransactionService.class);


Try this out, and let us know if you achieve any progress with this.
Best Regards,
Patrick Claus

External service provider at Valeo Siemens eAutomotive GmbH
Frauenauracher Str. 85
91056 Erlangen, Germany
Mail Address

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 10 guests