Interface TestNameResponsibilityFacade

    • Method Detail

      • findAllTestNameResponsibilities

        @NotNull
        List<TestNameResponsibilityEntry> findAllTestNameResponsibilities​(@NotNull
                                                                          TestName testName,
                                                                          @NotNull
                                                                          String projectId)
        Returns all responsibility entries for the test name in a project.
        Parameters:
        testName - the test name
        projectId - project internal id
        Returns:
        list of entries for this test; since 2018.1 entries of the given projectId go first in the list
        Since:
        8.0
      • findAllTestNameResponsibilities

        @NotNull
        List<TestNameResponsibilityEntry> findAllTestNameResponsibilities​(long testNameId,
                                                                          @NotNull
                                                                          String projectId)
        Returns all responsibility entries for the test name in a project.
        Parameters:
        testNameId - the test name ID
        projectId - project internal id
        Returns:
        list of entries for this test; since 2018.1 entries of the given projectId go first in the list
        Since:
        2020.2
      • getUserTestNameResponsibilities

        @NotNull
        List<TestNameResponsibilityEntry> getUserTestNameResponsibilities​(@Nullable
                                                                          User user,
                                                                          @Nullable
                                                                          String projectId)
        Returns the list of entries associated with the user (if specified) in a specified project.
        Parameters:
        user - the responsible user; null means all users
        projectId - the project internal id; null means all projects
        Returns:
        list of responsibilities
        Since:
        projectId is nullable since TeamCity 7.0
      • setTestNameResponsibility

        void setTestNameResponsibility​(@NotNull
                                       TestName testName,
                                       @NotNull
                                       String projectId,
                                       @NotNull
                                       ResponsibilityEntry entry)
        Sets the responsibility entry for the test name in a specified project.

        Note: if new reporter user isn't set (entry.getReporterUser() == null), it is not overwritten.

        Parameters:
        testName - the test name
        projectId - the project internal id
        entry - responsibility entry
      • setTestNameResponsibility

        void setTestNameResponsibility​(@NotNull
                                       Collection<TestName> testNames,
                                       @NotNull
                                       String projectId,
                                       @NotNull
                                       ResponsibilityEntry entry)
        Sets the responsibility for several tests at once in a specified project.
        Parameters:
        testNames - collection of test names
        projectId - the project internal id
        entry - new responsibility entry
        Since:
        6.0
        See Also:
        #setTestNameResponsibility(TestName, String, ResponsibilityEntry, Boolean)
      • setTestNameResponsibility

        void setTestNameResponsibility​(@NotNull
                                       Collection<TestName> testNames,
                                       @NotNull
                                       String projectId,
                                       @NotNull
                                       ResponsibilityEntry entry,
                                       boolean removeResponsibilitiesInChildProjects)
        Sets the responsibility for several tests at once in a specified project.
        Parameters:
        testNames - collection of test names
        projectId - the project internal id
        entry - new responsibility entry
        removeResponsibilitiesInChildProjects - indiciates whether relevant responsibilities in child projects should be removed.
        Since:
        2024.07
      • removeTestNameResponsibility

        void removeTestNameResponsibility​(@NotNull
                                          TestName testName,
                                          @NotNull
                                          String projectId)
        Removes the responsibility entry associated with the test name.
        Parameters:
        testName - the test name
        projectId - the project internal id