@@ -329,6 +329,7 @@ func (c *JiraCLIConfigGenerator) configureServerMeta(server, login string) error
329329 return nil
330330}
331331
332+ //nolint:gocyclo
332333func (c * JiraCLIConfigGenerator ) configureProjectAndBoardDetails () error {
333334 project := c .usrCfg .Project
334335 board := c .usrCfg .Board
@@ -405,10 +406,16 @@ func (c *JiraCLIConfigGenerator) configureProjectAndBoardDetails() error {
405406 c .value .board = c .boardsMap [strings .ToLower (board )]
406407
407408 if c .value .board == nil && ! strings .EqualFold (board , optionNone ) {
409+ var suggest string
410+ if len (defaultBoardSuggestions ) > 2 {
411+ suggest = strings .Join (defaultBoardSuggestions [2 :], ", " )
412+ } else {
413+ suggest = strings .Join (defaultBoardSuggestions , ", " )
414+ }
408415 return fmt .Errorf (
409416 "board not found\n Boards available for the project '%s' are '%s'" ,
410417 c .value .project .Key ,
411- strings . Join ( defaultBoardSuggestions [ 2 :], ", " ) ,
418+ suggest ,
412419 )
413420 }
414421 return nil
@@ -638,7 +645,13 @@ func (c *JiraCLIConfigGenerator) getBoardSuggestions(project string) error {
638645
639646 resp , err := c .jiraClient .Boards (project , "" )
640647 if err != nil {
641- return err
648+ if c .value .installation == jira .InstallationTypeCloud {
649+ return err
650+ }
651+ // We don't care about the error in the local instance since board API may not exist if agile-addon is not installed.
652+ // The only option available for board selection, in this case, is "None" if not passed directly from the flag.
653+ c .boardSuggestions = append (c .boardSuggestions , optionNone )
654+ return nil
642655 }
643656 c .boardSuggestions = append (c .boardSuggestions , optionSearch , lineBreak )
644657 for _ , board := range resp .Boards {
0 commit comments