Cannot Retire a KB Article

Beto
Mega Guru

When I click "Retire" button the article then says the article has been "published." Strange. I've looked at the workflows and don't see anything different and nothing was changed. Anything I missed?

1 ACCEPTED SOLUTION

Can you see what workflow is associated with this Knowledge Base and then post that?

Also...have you tried this with a fresh article or are you testing with some sort of XML imported articles or something?

Was the article published before you clicked that button?

Did you recently upgrade?

Was your instance recently patched?

Is this your Personal Developer Instance?

We need more information...this isn't OOB behavior...so something had to have happened here. Something isn't normal here and only you know of the anomalies.

Let us know, thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

6 REPLIES 6

Allen Andreas
Administrator
Administrator

Hello,

Unfortunately, you aren't giving us much context AND the fact that the Retire button doesn't even show unless the article is already published ANDDDDDD....the UI Action script looks like this:

if(new KBKnowledge().canRetire(current)){
	
	if (current.kb_knowledge_base.kb_version == "3" && new KBWorkflow().startWorkflow(current, "retire_workflow")) {
		if(current.workflow_state != 'retired'){
			current.update();
		}
		gs.addInfoMessage(new KBKnowledge().getStateMessage(current.getValue("workflow_state")));
	} else if (current.kb_knowledge_base.kb_version == "2") {
		current.workflow_state = 'retired';
		current.update();
		gs.addInfoMessage(new KBKnowledge().getStateMessage(current.getValue("workflow_state")));
	}
	if(typeof RP !== 'undefined'){
		if(RP.getParameterValue("sysparm_referring_url").indexOf('kb_view.do') >= 0){
			gs.setRedirect("kb_view.do?sys_kb_id=" + current.sys_id);
		}
	}
}

Which has nothing to do with publishing or saying that....someone has done "something" in your instance. So you'd need to look at changes to this UI action, revert to base, and see what all is going on. This isn't OOB behavior so unfortunately, it doesn't appear you can say you don't see anything different and nothing was changed.

Try looking again?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Beto
Mega Guru

That's exactly what I have for the UI Actions, the script is OOB; nothing was changed. When I click Retire, I get that it was published and taken back to the knowledge list and nothing changes with the KB article.

 

find_real_file.png find_real_file.png

 

 

find_real_file.png

Can you see what workflow is associated with this Knowledge Base and then post that?

Also...have you tried this with a fresh article or are you testing with some sort of XML imported articles or something?

Was the article published before you clicked that button?

Did you recently upgrade?

Was your instance recently patched?

Is this your Personal Developer Instance?

We need more information...this isn't OOB behavior...so something had to have happened here. Something isn't normal here and only you know of the anomalies.

Let us know, thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Sorry for late reply. This ended up being something I completely overlooked. Somehow the workflow were both set the same. I was able to correct this.

 

find_real_file.png