Create REST API to retrieve Plans by label

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: REST API
    • None
    • 0
    • 1

      Summary

      Currently Bamboo does not have a REST API option to retrieve list of plans under a specific label irrespective of the build status.

      Suggestion

      As we are able to get data from database would be helpful to get the same data from a REST API endpoint.

      SELECT
            L.NAME
           , B.FULL_KEY
           , BR.BUILD_NUMBER
           , BR.BUILD_STATE
      FROM
           LABEL L
           JOIN BUILDRESULTSUMMARY_LABEL BRL
                ON BRL.LABEL_ID=L.LABEL_ID
           JOIN BUILD B
                ON B.BUILD_ID=BRL.BUILD_ID
           LEFT JOIN BUILDRESULTSUMMARY BR
                ON BR.BUILDRESULTSUMMARY_ID=BRL.BUILDRESULTSUMMARY_ID
      WHERE 
           L.NAME = '<LABEL_NAME>';
      

            Assignee:
            Unassigned
            Reporter:
            Arthur Dantas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: