JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">Should be green -- using .data</div>
<div id="test2">Should be green -- using .attr</div>
CSS
.bug-type {color:green}
JavaScript
$("#test").data("issuetype", "bug");
$("#test2").attr("data-issuetype", "bug");
$("[data-issuetype=bug]").each(function () {
$(this).addClass("bug-type");
});