Hi,
I'm trying to get a list of all the boards related to a specific project by using the following line:
List<Board> sourceProjectBoards = boardManager.getBoardsForProject(sourceProject.getId())
I'm getting the following error:
Error: java.lang.NullPointerException: Cannot invoke method getBoardsForProject() on null object
I understand that I need to get the boardManager object, but I can't figure out how to do that.
Initially I thought it will be similar to how I get projectManager or workflowManager, etc. Using the ComponentAccessor.
But it seemed to be not the case in this one.
Any advice?