Page stuck in Comala workflow
Asked by Ally Lancaster:

Hoping someone can solve this puzzle!

I'm having a couple of issues with Comala workflow - Pages are failing to move forward to the next state in the workflow, despite having been approved appropriately.

Also, the 'Workflow' tab in the sidebar does not accurately represent the state that the page is in. It says 'Draft' when it should say 'Published'. The workflow macro however, displays state correctly.

Any suggestions much appreciated!

Here you can see P001 'Draft'

![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/59831i1C032D601458CC43/image-size/large?v=v2&px=999 "1.png")

Here you can see P001 is actually in 'QA Approval'

However it has been approved and should be in 'Published'. I have set minimum reviewers for QA approval to '1'

![2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/59832iBF540B2CCDC8DC26/image-size/large?v=v2&px=999 "2.PNG")

Workflow markup:

```
{workflow:name=QA Same-space Approval}
{description}
Simple QMS approval for same space publishing
{description}
{workflowparameter:Reviewers|description=Reviewers group|type=group}
confluence-reviewers
{workflowparameter}
{workflowparameter:Approvers|description=Users able to give final approval|type=group}
confluence-approvers
{workflowparameter}
{state:Draft|submit=In Review|taskable=true|changeduedate=true}
{state}
{state:In Review|approved=QA Approval|rejected=Draft|taskable=true}
{approval:Review|credentials=2|assignable=true|group=@Reviewers@|minimum=2}
{state}
{state:QA Approval|approved=Published|rejected=In Review|taskable=true|colour=#ffab00}
{approval:QA Approval|credentials=2|assignable=true|group=@Approvers@}
{state}
{state:Published|final=true|updated=In Review|taskable=true|hideselection=true|changeduedate=true}
{state}
{trigger:pageapproved|approval=Review}
{send-email:user=@alancaster@|subject=Page ready for final approval}
The page @page@ has been approved by [~@user@] and is waiting for your final approval.
{pageactivity}
{send-email}
{trigger}
{workflow}
```


Answers:
author: Prerak Shah
body: I have found a proper solution to this issue, and the solution is to update **Maximum Events** and **Time Threshold (seconds)** in **Loop Watchdog** configuration of **Comala Document Management** as per your requirement.

**Reference link:** <https://wiki.comalatech.com/display/CWL/Configuration+-+Global>

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/199872i1BFA24FA1D111B51/image-size/large?v=v2&px=999 "Capture.JPG")


author: Fabian B?ttner
body: Hello everybody,

so i think i have a little bit the same issue. In my system it is not possible to publish the document as an editor in chief. When i want to give my approval, it stuck in reviewed. Maybe some one can help me? [@Daryl Karan](/t5/user/viewprofilepage/user-id/902719)

comments: author: James Conway
body: Hello Fabian,

Our friendly Customer Support team will be able to help diagnose the reason why your approval is stuck and find a solution.

Please open a ticket at <https://support.comalatech.com>

It would be really helpful if you could attach a Support Package for the affected page, please see <https://wiki.comalatech.com/display/CDML/Support+Console+-+Space+Tools> for more details.

Thanks in advance

James


author: Daryl Karan
body: Hi Ally,

Sorry for the delay in responding.

I tested your workflow you posted above and I had no issues with it in my environment. It never got stuck and I was able to process through all the states and approvals. Having said that, can you please try the following:

### Page Level Population Action {#toc-hId-1085303408}

This is the most useful way of solving specific issues when the not a whole space is affected but just some pages. Any user with permissions over a page/blog can run the following action and the properties will be set/updated in the page.

|------------------------------------------------------------------|
| `<HOSTNAME>/pages/populatePageProperties.action?pageId={pageId}` |

Accessing that action will repopulate the Workflows Content Properties for that page only and will redirect you back into the page. No success/error message will be displayed to the user when performing this action. However, if the properties were not updated or were updated in an unexpected way the **server logs will contain any error thrown during this action**.

I would recommend to open a ticket with our support team (support@comalatech.com) so they can assist further with this issue.

Best Regards,

Daryl Karan  
Pre-Sales Engineer  
ComalaTech


author: Mike Rink
body: [@Ally Lancaster](/t5/user/viewprofilepage/user-id/3140801) based on your screenshots, it looks like you actually haven't set a minimum of reviews in the "QA Approval" State. That may be the reason the workflow won't advance.

As for the reporting issue, it's hard to say why that's happening, but from past experience sometimes a reindexing of Confluence sorts that out - have you tried that?

comments: author: Ally Lancaster
body: Hi Mike, I have set a minimum of 1 for the review but still no luck :(

Thanks for the reindexing tip however it didn't work either.


author: Nguy?n Th?nh H?i
body: Can you show your screen shot?

comments: author: Ally Lancaster
body: I have updated my question with some screenshots. Is there anything else that I can add that might help?


author: Nguy?n Th?nh H?i
body: yeah Ally.

Can you show detail of workflow configuration?


author: Ally Lancaster
body: Hi Hai, are you asking for the diagram of the workflow?


Tags: comala

comala-workflows