(REST) No endpoint available providing testId

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 7.0.0
    • Component/s: REST API
    • None
    • 0

      Problem

      Currently, there is no endpoint providing testId, making it difficult to consume internal endpoint:

      • /plan/{projectKey}-{buildKey}/test/{testId}/quarantine [POST]
          Please, notice endpoint about is not listed in https://docs.atlassian.com/atlassian-bamboo/REST/6.4.1/

      Workaround

      It is required to review testId from Bamboo's UI or database.
      The following query can be used for this purpose:

      SELECT full_key,
             test_case_id as testId,
             test_class_name,
             test_case_name,
             quarantining_username,
             quarantine_date
      FROM build b
      JOIN test_class tcl ON tcl.plan_id=b.build_id
      JOIN test_case tc   ON tc.test_class_id=tcl.test_class_id
      WHERE b.full_key like 'PROJ-PLAN%'

      ⚠️This query was designed for Postgres DB and might needs adjustments for a different DB type.

            Assignee:
            Alexey Chystoprudov
            Reporter:
            Rafael Sperafico (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: