Check if all comments in a work items are resolved when going to the next status

Description
ALMighty
Posts: 80
Joined: Wed Apr 27, 2016 10:34 am
Location: Austria

Check if all comments in a work items are resolved when going to the next status

Postby ALMighty » Wed Jun 20, 2018 11:00 am

Hello alltogether!

I'd like to know if there is a way to check - just with the tools available in the workflow configuration, including Worklflow conditions and functions - if all comments in a work item are resolved. ScriptFUnction and ScriptCondition are not favoured, as they - I at least guess - need bo be backuped and reincluded in case of updgrading Polarion or migrating it to another Server.

Best regards :)
---------------------------------------------------------------------------------------------------
Playing a good game is never lame. :D
Image

processworks
Posts: 1
Joined: Mon Jul 09, 2018 1:44 pm

Re: Check if all comments in a work items are resolved when going to the next status

Postby processworks » Mon Jul 09, 2018 1:50 pm

This is definitely a case for the ScriptCondition you do not like.

You should review your upgrade process and make sure that extensions and scripts (Polarion/scripts folder) are in place after any version upgrade.

The script condition itself would be something simple as:

Code: Select all

// check if all comments are resolved (only root comments)
workitem = workflowContext.getWorkItem();
var comments = workitem.getComments(false)
var result = true;
if(comments.size() == 0)
   result = true;
else
   result = false;

result;


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests