It is possible to customize the status a JIRA issue passes through but they are always assigned one out of three status categories. JIRA has no easy solution to report how many issues are currently in a state associated with the category "To Do", "In Progress" or "Done", so if you have a complex workflow it might be tricky to get the big picture. Many of our customers struggle with this. So now we will build an overview like that.

Most of the work (i.e. grouping by status category) is done within the converter, while we use a basic jql to retrieve all issues of a project.


Datasource type

REST Application Link

Application Link

Your Company Jira

Datasource Test URL



Query URL



function convert(json) {
    const statusCategories = [];
    const issues = JSON.parse(json).issues; // parse json string

    // iterate through issues and count occurences of statusCategories
    for (let issue of issues) {   // iterate over all issues
        let currStatusCategory = issue.fields.status.statusCategory;

        if(statusCategories[]) {   // category is already listed, increase counter
        } else {   // category is new, add it to our collection
            statusCategories[] = 1;

    // build simple result for template
    const result = [];
    for (const name in statusCategories) {
            'Category': name,
            'Number of Issues': statusCategories[name]

    result.sort(function(a,b) {
        return a.Category < b.Category ? 1 : -1;

    return result;


Default or this custom chart template:

    PocketQuery.chart('ColumnChart', {
        width: 500,
        height: 500,
        bar: {groupWidth: "30%"},
        legend: {position: 'none'}