Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to select boards in JIRA using rest API thuogh json?

Manickaraja July 2, 2018

I am new to work in jira. In my project i need to create user story through Rest API using Json format. I am able to create ticket in JIRA using JSON but I need to select any boards. 

While passing parameter through json i am facing error like "board":"Field 'board' cannot be set. It is not on the appropriate screen, or unknown."

{
"fields":
{
"project":
{

"key": "AAA"

},
"board":"AAA Production Support ",
"summary": "Test Task for API Creation Production Support sample01",
"description": "Creating of an Production Support sample01 using the REST API",
"issuetype": {
"name": "Task"
}
}
}

Can anyone please help to resolve this issue. how can i select boards and how to pass parameters to select multiple boards.

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

You should use the Jira Software Rest Api to work with board. Have a look at this article:

https://developer.atlassian.com/cloud/jira/software/rest/#api-board-get

Manickaraja July 3, 2018

Thanks Alex,

While Creating Ticket using JIRA In that How to select which board that ticket will be going to create.

"board":"AAA Production Support "

The above mentioned board that ticket going to create so I need check json by passing parameter. could you please help on this.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

You do not. 

A board is not a container for issues.  A board is a view of a selection of issues.

For an issue to appear on a board, it must be selected by the board filter.  So, to get it on the board, create the issue with data such that it is selected to be on the board.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Suggest an answer

Log in or Sign up to answer