How do I remove a page from a staging task

Kurt Muller asked on June 27, 2018 12:52

Hi all

I have setup a custom workflow, which includes a synchronize step, taking the page up from dev to our production server. The issue I am facing is that the final state of the page in the workflow is "Archive page" and this pate state is also a Staging task. I want to be able to remove this task from being staged up as the syncing already happens within the workflow.

How do I go about doing this?

Kurt

Recent Answers


Brenden Kehren answered on June 27, 2018 13:03

Can you explain your custom workflow some more? Is it in code using the API or something else? If using the API you should be able to look the staging task up using the API and remove it.

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on June 27, 2018 16:02 (last edited on June 27, 2018 16:19)

Hi Brenden

Within the Kentico Portal, I navigated to Workflows and created a "New Advanced Workflow" I'm basically using the portal process as explained here: https://docs.kentico.com/k10/managing-website-content/working-with-pages/using-workflows

The Workflow currently has a a couple of email notification steps, with approvals, and ends of with a Sync task moves the page state to Archived.

Hope this info helps.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on June 27, 2018 19:37

I am not sure what you mean. Your workflow steps are like (some notification steps) -> Published -> Sync -> Archived?
It does not make much sense such a workflow setup. Or, am I missing something?
The only other idea I have is maybe that you do not want to log certain staging tasks in the Staging app since the changes are synchronized in the workflow? If yes, then this article will give you some hints.

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on June 28, 2018 09:58

Hi Juraj

Our internal process is something like this: * All content changes must be done on dev first before we we can take it up to production * The content update are done by a content editing team and their access is restricted, so they cannot access Staging, but need the option to sync pages.

For some reason I cannot remove the "archived" step, as Kentico system keeps saying I need this step at least once somewhere in my workflow.

While the steps may not make sense to some, it's a workflow needed to match up with our internal processes.

Hope this helps.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on June 28, 2018 10:20

OK, so why don't you move the synchronize step before Publish step? Something like shown here? It is a simple workflow - the editor will edit the page, then it will get approved from the Standard step to the next one which is the sync step and from this step there is the automatic transition to publish step.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.