Page 1 of 1

Creating Custom Workflow

Posted: Mon Mar 19, 2018 10:10 am
by yashgolwara
I am trying to create new Workflow in polarion through Java Web Services API.

Currently i am able to fetch the available workflows int the project(pre-defined).

Code: Select all

EnumOptionId[] valuesss = trackerService.getAvailableEnumOptionIdsForId(wiURI, "workitem-type");
         for (int i = 0; i < valuesss.length; i++) {
            EnumOptionId value = valuesss[i];
             System.out.println("available enum option id...." + value.getId());

         }



eg: testcase or unittestcase

i want to create one new workflow custom for my project, i was not able to find any exposed methods to create new workflow.

Re: Creating Custom Workflow

Posted: Mon Mar 19, 2018 1:21 pm
by ALMighty
yashgolwara wrote:i want to create one new workflow custom for my project, i was not able to find any exposed methods to create new workflow.


There are none, I am very certain. The Javadoc usage page of the WorkflowAction class is a good indicator that the API lacks any of these methods.

Even if there would be I still would recommend to change the workflow manually in the Administration section of your Polarion project, since a worklfow is a complex matrix of status options and actions.