Page 1 of 1

Workflow automatization

Posted: Tue Apr 16, 2019 10:03 am
by RJR
For workitems I can create a linkedworkitemstatuschange function so when a workitem its status is changed the linked workitem its status will change as well.

I want to make something similar for workitems and documents. For example: My document is in the status in review, all my workitems as well. I want to make a function that when I have changed all my workitems to reviewed the status of the document will change as well.

Is this possible by default in Polarion or do I need to make a scriptfunction?

Re: Workflow automatization

Posted: Wed Apr 17, 2019 11:57 am
by J├╝rgen
AFAIK this is not possible per default. I think there is no dependency at all between document state and work item state, same with approval. My personal assumption is, that document state/approval is rather meant as an alternative to work item state/approval, not really depending on each other.

Re: Workflow automatization

Posted: Thu Apr 18, 2019 6:21 am
by RJR
Would it be possible to make a function for automatic workitem approval? The status change reviewed adds default approvers, so there is a list of approvers. I would like a automatic function when the last approver approves the workitem ( and all other approvers have approved so no disapprovals) the status of the workitem would automatically become approved.

Re: Workflow automatization

Posted: Thu May 16, 2019 4:25 pm
by raElmo
Hi RJR,

How do you make the linkedworkitemstatuschange function?
I would like it if when I change the status of a work item, this would automatically change the status of the work items that are linked to this work item.

Thanks.

Re: Workflow automatization

Posted: Tue Jul 30, 2019 12:46 pm
by RJR
This is possible in the workitem workflow manager.
you can create a function triggered by status change called: LinkedWorkItemsStatusChange
by using the right parameters ( you can find these in polarion help) a linked workitem will change its status aswell.

example, when a testcase goes to the status passed, the linked requirement goes to validated.

Re: Workflow automatization

Posted: Tue Aug 06, 2019 6:48 am
by fml
Dear RJR,

I have a question to the named example: "...when a testcase goes to the status passed, the linked requirement goes to validated..."

If you use the TestRund-feature of Polarion a TestCase is executed within a TestRun and gets a TestResult for this specific Revision, therefore ist status doesn't change. You will have a TestResult which is for example "passed", "failed" or "blocked", but no status-Change of the WorkItem-Type TestCase.

Is their any Workflow Function in Polarion which can change the status of a Requirement, depending on the TestResult? This would be very helpful.

Best regards
Markus