Create board columns using the Jira API

I was just wondering if it is possible using the Jira server API to create board columns given a board id.

Also it’s be nice if one could then populate the columns with the issues that belong there.

Checked the documentation but couldn’t seem to find anything related to this.

It’s possible. You’ll want to look at the com.atlassian.jira.plugins:jira-greenhopper-plugin maven artifact. In particular you’ll want to look for (note to update the artifact to something found in jira source).

Since I’m using the Jira API, I need to know the endpoint and which request to us.

Also, I’m not interested in the swimlanes but in the columns.