const idx = {
	'never started': 1,
	'not available': 2,
	'running': 3,
	'broken': 4,
	'failed': 5,
	'uptodate': 6,
	'manually uptodate': 7
};

return typeof idx[value.toLowerCase()] === 'undefined' ? 0 : idx[value.toLowerCase()];