Skip to content

Expand all discussions in MR/issue/epic

I would like to be able to expand all discussions in a noteable, even resolved ones, so that I can CTRL+F and find a specific comment, which I can't do at the moment.

Workaround:

@sethgitlab suggested the following to copy/paste into dev tools for ISSUES:

/* Expand threads on issues */
document.getElementsByClassName("collapsed")
var collapsed = document.getElementsByClassName("qa-expand-replies")
for (var i=0; i<collapsed.length; i++){
	collapsed[i].click();
}

MRs:

/* Expand threads on MRs */
var collapsed_threads = document.getElementsByClassName("fa-chevron-down")
for (var i=0; i<collapsed_threads.length; i++){
	if (collapsed_threads[i].parentElement.nodeName ==  "BUTTON")
		collapsed_threads[i].parentElement.click();
}
Edited by charlie ablett