use of com.checkmarx.flow.dto.azure.CreateWorkItemAttr in project cx-flow by checkmarx-ltd.
the class IssueRequestBuilder method getTags.
private CreateWorkItemAttr getTags(String projectName, String organizationName) {
CreateWorkItemAttr result = new CreateWorkItemAttr();
result.setOp("add");
result.setPath("/fields/Tags");
String tags = String.format("CX,owner:%s,repo:%s,branch:%s", organizationName, projectName, AzureDevopsClient.DEFAULT_BRANCH);
result.setValue(tags);
return result;
}
use of com.checkmarx.flow.dto.azure.CreateWorkItemAttr in project cx-flow by checkmarx-ltd.
the class IssueRequestBuilder method getEntityBodyForCreation.
public List<CreateWorkItemAttr> getEntityBodyForCreation(Issue issue, String projectName, String organizationName) {
CreateWorkItemAttr title = getTitle(issue);
CreateWorkItemAttr description = getDescription(issue);
CreateWorkItemAttr state = getState(issue.getState());
CreateWorkItemAttr tags = getTags(projectName, organizationName);
return Arrays.asList(title, description, state, tags);
}
use of com.checkmarx.flow.dto.azure.CreateWorkItemAttr in project cx-flow by checkmarx-ltd.
the class IssueRequestBuilder method getDescription.
private CreateWorkItemAttr getDescription(Issue issue) {
CreateWorkItemAttr description = new CreateWorkItemAttr();
description.setOp("add");
description.setPath("/fields/System.Description");
description.setValue(issue.getBody());
return description;
}
use of com.checkmarx.flow.dto.azure.CreateWorkItemAttr in project cx-flow by checkmarx-ltd.
the class IssueRequestBuilder method getTitle.
private CreateWorkItemAttr getTitle(Issue issue) {
CreateWorkItemAttr title = new CreateWorkItemAttr();
title.setOp("add");
title.setPath("/fields/System.Title");
title.setValue(issue.getTitle());
return title;
}
Aggregations