Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraudrey.e.denk2021-01-26 14:57:16 +0000
committerRyan Brooks2021-01-26 17:53:16 +0000
commitb76fa19ce1075a29241b4fa97dbebd37e1979e98 (patch)
treeca1e06dca9190339a09920d09db0ea57300ff93d
parent40d2a1c5106adf03ccf59545199f7ad5e9507f76 (diff)
downloadorg.eclipse.osee-b76fa19ce1075a29241b4fa97dbebd37e1979e98.tar.gz
org.eclipse.osee-b76fa19ce1075a29241b4fa97dbebd37e1979e98.tar.xz
org.eclipse.osee-b76fa19ce1075a29241b4fa97dbebd37e1979e98.zip
bug[TW18356]: Change user id passed into rest call to validate TW and assign Change Ids
Change-Id: I8841449a977b27ce4fd403aa2ad9211ed20e6972 Signed-off-by: audrey.e.denk <audrey.e.denk@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsTeamWfEndpointImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsTeamWfEndpointImpl.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsTeamWfEndpointImpl.java
index aea7cf79c3a..a4d7b60de88 100644
--- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsTeamWfEndpointImpl.java
+++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/workitem/AtsTeamWfEndpointImpl.java
@@ -145,11 +145,11 @@ public class AtsTeamWfEndpointImpl implements AtsTeamWfEndpointApi {
rd.errorf("%s is an invalid ATS userId", userId);
return rd;
}
- if (!atsApi.getUserService().isUserIdValid(userId.getIdString())) {
+ AtsUser asUser = atsApi.getUserService().getUserByAccountId(userId);
+ if (asUser.isInvalid()) {
rd.errorf("%s is an invalid ATS userId", userId);
return rd;
}
- AtsUser asUser = atsApi.getUserService().getUserById(userId);
IAtsChangeSet changes = atsApi.createChangeSet("Add Change Id(s)", asUser);
Set<String> distinctChangeIds = new HashSet<String>(
atsApi.getAttributeResolver().getAttributesToStringList(workItem, CoreAttributeTypes.GitChangeId));

Back to the top