Skip to content

Commit

Permalink
Merge pull request #3 from testit-tms/hotfix/fix_models_for_client
Browse files Browse the repository at this point in the history
Fixed "WorkItemSelectModelFilter" and "ApiV2ProjectsProjectIdWorkItem…
  • Loading branch information
taipoxinous authored Oct 22, 2024
2 parents 6936e7c + beaddcf commit edb51c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/ru/testit/management/clients/TmsClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import ru.testit.client.api.ProjectsApi
import ru.testit.client.api.WorkItemsApi
import ru.testit.client.invoker.ApiClient
import ru.testit.client.model.SectionModel
import ru.testit.client.model.WorkItemFilterModel
import ru.testit.client.model.WorkItemSelectModelFilter
import ru.testit.client.model.WorkItemModel
import ru.testit.client.model.WorkItemSelectModel
import ru.testit.client.model.ApiV2ProjectsProjectIdWorkItemsSearchPostRequest
import ru.testit.management.utils.MessagesUtils
import ru.testit.management.windows.settings.TmsSettingsState
import java.util.*
Expand Down Expand Up @@ -80,11 +80,11 @@ object TmsClient {
return workItems
}

val filter = WorkItemFilterModel()
val filter = WorkItemSelectModelFilter()
filter.sectionIds = setOf(sectionId)
filter.isDeleted = false

val request = WorkItemSelectModel()
val request = ApiV2ProjectsProjectIdWorkItemsSearchPostRequest()
request.filter = filter

try {
Expand Down

0 comments on commit edb51c0

Please sign in to comment.