Page 1 of 1

Retrieval of linked work item available actions throws a warning

Posted: Mon Feb 26, 2018 1:04 pm
by cvaditya
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 ?

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

Posted: Mon Mar 05, 2018 2:46 pm
by ALMighty
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