Retrieval of linked work item available actions throws a warning

Description
cvaditya
Posts: 1
Joined: Mon Feb 26, 2018 12:47 pm

Retrieval of linked work item available actions throws a warning

Postby cvaditya » Mon Feb 26, 2018 1:04 pm

I have the following code to retrieve the linked work item available actions.

Code: Select all

var parentWIs = workitem.getLinkedWorkItemsDirect();
for (var parents = parentWIs.iterator(); parents.hasNext();)
{
   var parent = parents.next();
   var availableActions = parent.getAvailableActions();
}


I'm currently receiving an error in the dialog window as follows,

'Reject' failed for Work Item 'XXXX': Inconsistent configuration, call WorkflowConfig.verify()


Due to which I'm unable to run my script. What is the cause of this ? Is there any other way to access the linked work item to change it's due date ?

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

Re: Retrieval of linked work item available actions throws a warning

Postby ALMighty » Mon Mar 05, 2018 2:46 pm

cvaditya wrote:I have the following code to retrieve the linked work item available actions.

Code: Select all

var parentWIs = workitem.getLinkedWorkItemsDirect();
for (var parents = parentWIs.iterator(); parents.hasNext();)
{
   var parent = parents.next();
   var availableActions = parent.getAvailableActions();
}

I'm currently receiving an error in the dialog window as follows,
'Reject' failed for Work Item 'XXXX': Inconsistent configuration, call WorkflowConfig.verify()

Due to which I'm unable to run my script. What is the cause of this ? Is there any other way to access the linked work item to change it's due date ?


My first mere guess is that one of the linked work items is in a different project than
the root item. Both items have then a reject option but both reject options have different configurations in their projects. However, as I said that is just a mere guess.

This is Javascript code right? Is this code embedded in a wiki page? :o
---------------------------------------------------------------------------------------------------
Playing a good game is never lame. :D
Image


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests