@@ -28,6 +28,11 @@ public class WorkItem implements Todoable {
2828 */
2929 private Time createdAt ;
3030
31+ /**
32+ * URL of the work item that the work item is marked as a duplicate of.
33+ */
34+ private String duplicatedToWorkItemUrl ;
35+
3136 /**
3237 * Global ID of the work item.
3338 */
@@ -43,6 +48,11 @@ public class WorkItem implements Todoable {
4348 */
4449 private Integer lockVersion ;
4550
51+ /**
52+ * URL of the work item that the work item was moved to.
53+ */
54+ private String movedToWorkItemUrl ;
55+
4656 /**
4757 * Namespace the work item belongs to. Introduced in GitLab 15.10: **Status**: Experiment.
4858 */
@@ -119,6 +129,15 @@ public WorkItem setCreatedAt(Time createdAt) {
119129 return this ;
120130 }
121131
132+ public String getDuplicatedToWorkItemUrl () {
133+ return duplicatedToWorkItemUrl ;
134+ }
135+
136+ public WorkItem setDuplicatedToWorkItemUrl (String duplicatedToWorkItemUrl ) {
137+ this .duplicatedToWorkItemUrl = duplicatedToWorkItemUrl ;
138+ return this ;
139+ }
140+
122141 public WorkItemID getId () {
123142 return id ;
124143 }
@@ -146,6 +165,15 @@ public WorkItem setLockVersion(Integer lockVersion) {
146165 return this ;
147166 }
148167
168+ public String getMovedToWorkItemUrl () {
169+ return movedToWorkItemUrl ;
170+ }
171+
172+ public WorkItem setMovedToWorkItemUrl (String movedToWorkItemUrl ) {
173+ this .movedToWorkItemUrl = movedToWorkItemUrl ;
174+ return this ;
175+ }
176+
149177 public Namespace getNamespace () {
150178 return namespace ;
151179 }
@@ -220,7 +248,7 @@ public WorkItem setWorkItemType(WorkItemType workItemType) {
220248
221249 @ Override
222250 public int hashCode () {
223- return Objects .hash (archived , closedAt , confidential , createdAt , id , iid , lockVersion , namespace , reference , state , title , updatedAt , webUrl , widgets , workItemType );
251+ return Objects .hash (archived , closedAt , confidential , createdAt , duplicatedToWorkItemUrl , id , iid , lockVersion , movedToWorkItemUrl , namespace , reference , state , title , updatedAt , webUrl , widgets , workItemType );
224252 }
225253
226254 @ Override
@@ -232,12 +260,12 @@ public boolean equals(Object obj) {
232260 if (getClass () != obj .getClass ())
233261 return false ;
234262 WorkItem other = (WorkItem ) obj ;
235- return Objects .equals (archived , other .archived ) && Objects .equals (closedAt , other .closedAt ) && Objects .equals (confidential , other .confidential ) && Objects .equals (createdAt , other .createdAt ) && Objects .equals (id , other .id ) && Objects .equals (iid , other .iid ) && Objects .equals (lockVersion , other .lockVersion ) && Objects .equals (namespace , other .namespace ) && Objects .equals (reference , other .reference ) && Objects .equals (state , other .state ) && Objects .equals (title , other .title ) && Objects .equals (updatedAt , other .updatedAt ) && Objects .equals (webUrl , other .webUrl ) && Objects .equals (widgets , other .widgets ) && Objects .equals (workItemType , other .workItemType );
263+ return Objects .equals (archived , other .archived ) && Objects .equals (closedAt , other .closedAt ) && Objects .equals (confidential , other .confidential ) && Objects .equals (createdAt , other .createdAt ) && Objects .equals (duplicatedToWorkItemUrl , other . duplicatedToWorkItemUrl ) && Objects . equals ( id , other .id ) && Objects .equals (iid , other .iid ) && Objects .equals (lockVersion , other .lockVersion ) && Objects . equals ( movedToWorkItemUrl , other . movedToWorkItemUrl ) && Objects .equals (namespace , other .namespace ) && Objects .equals (reference , other .reference ) && Objects .equals (state , other .state ) && Objects .equals (title , other .title ) && Objects .equals (updatedAt , other .updatedAt ) && Objects .equals (webUrl , other .webUrl ) && Objects .equals (widgets , other .widgets ) && Objects .equals (workItemType , other .workItemType );
236264 }
237265
238266 @ Override
239267 public String toString () {
240- return "WorkItem [archived=" + archived + ", closedAt=" + closedAt + ", confidential=" + confidential + ", createdAt=" + createdAt + ", id=" + id + ", iid=" + iid + ", lockVersion=" + lockVersion + ", namespace=" + namespace + ", reference=" + reference + ", state=" + state + ", title=" + title + ", updatedAt=" + updatedAt + ", webUrl=" + webUrl + ", widgets=" + widgets + ", workItemType=" + workItemType + "]" ;
268+ return "WorkItem [archived=" + archived + ", closedAt=" + closedAt + ", confidential=" + confidential + ", createdAt=" + createdAt + ", duplicatedToWorkItemUrl=" + duplicatedToWorkItemUrl + ", id=" + id + ", iid=" + iid + ", lockVersion=" + lockVersion + ", movedToWorkItemUrl=" + movedToWorkItemUrl + ", namespace=" + namespace + ", reference=" + reference + ", state=" + state + ", title=" + title + ", updatedAt=" + updatedAt + ", webUrl=" + webUrl + ", widgets=" + widgets + ", workItemType=" + workItemType + "]" ;
241269 }
242270
243271}
0 commit comments