Change state to 'draft' from 'review' in Knowledge article

emma_hunt
Giga Contributor

Hi there,

I am trying to come up with a solution to change the workflow_state of a kb article that is in 'review' to 'draft.' We have a UI Action for "Return to Draft" which checks to see if the article is published or in review and sets the workflow_state to 'draft.' However, this does not work for articles in review and I am thinking it is because when the article is in review, it is running on the Approval Publish workflow and it is waiting to get approved or rejected and the state is not able to change.

Is there a way of checking in the workflow to see if that UI Action was started so that I can use that as a condition to change the workflow_state in the workflow itself?

Thanks

2 REPLIES 2

Kalaiarasan Pus
Giga Sage

Is the approval generated as per the workflow or not? Can you check if you have a modified version of the workflow or is it similar to out of the box?


When someone does not approve it, then the stage is set to 'draft.' When it is approved, a workflow called 'Publish Knowledge' is kicked off where a script is run to publish the Knowledge article. I believe this is all OOB.



Do you think there is a way to add another condition to check if the UI Action was fired?