Forums

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

Create a board using the Java API?

Timo Keilbach February 12, 2020

I am using the SDK to create a plugin with a project template using the Java API. As part of this template I want to create a board (Scrum or Kanban).

I was not able to find any examples during my research...

 

In my current approach I'm using the following code during the ProjectCreatedEvent:

BoardService boardService = ComponentAccessor.getComponent(BoardService.class);
ServiceOutcome<Board> defaultBoardForProject = boardService.createDefaultBoardForProject(user, project.getId());

The confusing part is, during debugging I can see, that the board is created. As the returned Object defaultBoardForProject is not null. The object has a boardId and an associated filter with filterId.

 

So, for me it looks like the board is created... It is also possible to retrieve the board using the boardId during debug. But the board is not visible via the browser and also not assigned to the project...

 

Thanks for your help.

1 answer

0 votes
Anil Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2020 edited

I am also seeing the same behavior. I can see the boards being created in eclipse debugger, but they are not visible in browser. Even the JIRA AGILE rest call /rest/agile/latest/board/ also doesn't return these boards created by the java API

Suggest an answer

Log in or Sign up to answer