How to know which column an issue is in?

Hi,

Given an issue ID, which API should I call if I need to know which column the issue is in? I found no clue after going through the API document. The issue REST API examples contain nothing relating to column, or I may miss something?

Thanks in advance!

Hi @Ming,

If by column you are referring to the columns in a board (scrum or kanban), I have not seen a single API call to return that information. However, by making an additional call to get the column information (given a boardId), you might be able to get the mapping you need:

  1. Call Get configuration API to get the board configuration and have a way to map statuses with columns which will return this information
    "columnConfig":
    {
        "columns":
        [
            {
                "name": "Ian To Do",
                "statuses":
                [
                    {
                        "id": "10026",
                        "self": "https://myinstance.atlassian.net/rest/api/2/status/10026"
                    }
                ]
            },
            {
                "name": "Done",
                "statuses":
                [
                    {
                        "id": "10028",
                        "self": "https://myinstance.atlassian.net/rest/api/2/status/10028"
                    }
                ]
            },
            {
                "name": "testing",
                "statuses":
                [
                    {
                        "id": "10027",
                        "self": "https://myinstance.atlassian.net/rest/api/2/status/10027"
                    }
                ]
            }
        ],
        "constraintType": "none"
    },
  1. Call Get issue API to get the status. You may use fields=status if you are only interested with the status field.
    "fields":
    {
        "status":
        {
            "self": "https://myinstance.atlassian.net/rest/api/2/status/10027",
            "description": "",
            "iconUrl": "https://myinstance.atlassian.net/",
            "name": "In Progress",
            "id": "10027",
            "statusCategory":
            {
                "self": "https://myinstance.atlassian.net/rest/api/2/statuscategory/4",
                "id": 4,
                "key": "indeterminate",
                "colorName": "yellow",
                "name": "In Progress"
            }
        }
    }

Hope this helps.

Ian

@iragudo Thanks! This is exactly what I need.

1 Like