Custom columns Boards and automation via REST API

Hi,

I’m new to JIRA. I was given the task of automating the process of creating projects, there will really be a lot of them. Each project must have a Board with custom columns attached to it. How to do it? There is no way to create custom columns for a board in the REST API. Maybe there is a board template that can be connected to the project or something else

Thank you

Hi @Alyona ,

Welcome to the Atlassian developer community. Unfortunately I don’t think it is currently possible to configure boards using the Jira Software Cloud APIs. I’m also not away of any workarounds such as by using templates as you suggest.

Regards,
Dugald

1 Like

Welcome to the Atlassian developer community @Alyona,

To elaborate slightly on @dmorrow’s already correct answer, the resource exists as a board configuration with a columnConfig but it has no PUT or POST methods to create or edit it via the REST API. Moreover, there is no option to send a columnConfig when creating a board.

2 Likes

@dmorrow and @ibuchanan, thanks for the answers. I understand that using the REST API will not solve this problem. Is it possible to configure JIRA so that the board is already created with additional columns? If all the new boards will have the same columns, that’s good. I found a place in JIRA where you can configure task statuses and categorize them (to be completed, in progress, completed) /secure/admin/ViewStatuses.jspa. But I didn’t find how to add categories. Is this the wrong way? Boards based on a template cannot be created using the REST API. Please tell me how to automatically create such boards. Is it possible?

I’m also considering the idea of creating such boards using a plugin, but this is a more complex option

@Alyona,

I don’t know any way to create boards that are preconfigured. And I don’t know any way that Cloud plugins can configure boards without using the REST APIs.

Hey there.

I figured out the way to edit columns on the Jira boards, I used the endpoint /rest/greenhopper/1.0/rapidviewconfig/columns with the following endpoint and I edited the board columns :grinning:

{
  "currentStatisticsField": { "id": "none_" },
  "rapidViewId": 176,
  "mappedColumns": [
    {
      "mappedStatuses": [
        { "id": "10003" }
      ],
      "name": "To Do",
      "isKanPlanColumn": false
    },
    {
      "mappedStatuses": [
        { "id": "10072" }
      ],
      "name": "In Progress",
      "isKanPlanColumn": false
    },
    {
      "mappedStatuses": [
        { "id": "10005" }
      ],
      "name": "Done",
      "isKanPlanColumn": false
    }
  ]
}

Welcome to the Atlassian developer community @CarlosTreminio and thank you for joining with such a constructive first post.

For any developers who find @CarlosTreminio’s solution, I will warn that endpoint is not documented; hence, not considered public or supported. As such, please be aware that Atlassian may change it at will and without notice.

1 Like

Also, as an additional caveat to what @ibuchanan said about @CarlosTreminio’s solution, that old Greenhopper endpoint doesn’t ‘edit’ the existing columns, it erases the whole set and creates a new set, with new IDs.

Beware the consequences.

1 Like