diff --git a/integration_platform_clickup_go/.vscode/launch.json b/integration_platform_clickup_go/.vscode/launch.json index b086718..578f9a3 100755 --- a/integration_platform_clickup_go/.vscode/launch.json +++ b/integration_platform_clickup_go/.vscode/launch.json @@ -11,7 +11,7 @@ "mode": "auto", "program": "${workspaceFolder}/main.go", "console": "externalTerminal", - // "args": ["-iv", "journey"] + // "args": ["-ii", "journey"] } ] diff --git a/integration_platform_clickup_go/gerarCompilado.sh b/integration_platform_clickup_go/gerarCompilado.sh index 51bd8be..383bd56 100755 --- a/integration_platform_clickup_go/gerarCompilado.sh +++ b/integration_platform_clickup_go/gerarCompilado.sh @@ -1,6 +1,6 @@ #!/bin/bash -version="v01.00.05" +version="v01.00.06" mainFileName="IntegrationPlatformClickup" fileNameCompact="" auxFileName="" diff --git a/integration_platform_clickup_go/main.go b/integration_platform_clickup_go/main.go index 9360d13..4863ea8 100755 --- a/integration_platform_clickup_go/main.go +++ b/integration_platform_clickup_go/main.go @@ -8,7 +8,9 @@ import ( "integration_platform_clickup_go/services/service_conviso_platform" "integration_platform_clickup_go/types/type_clickup" "integration_platform_clickup_go/types/type_enum/enum_clickup_ps_team" - "integration_platform_clickup_go/types/type_enum/enum_clickup_type_consulting" + "integration_platform_clickup_go/types/type_enum/enum_clickup_statuses" + "integration_platform_clickup_go/types/type_enum/enum_clickup_type_ps_hierarchy" + "integration_platform_clickup_go/types/type_enum/enum_main_action" "integration_platform_clickup_go/types/type_platform" "integration_platform_clickup_go/utils/functions" "integration_platform_clickup_go/utils/variables_constant" @@ -66,7 +68,6 @@ func MenuSetupConfig() { } switch input { case 0: - break case 1: LoadProjects() default: @@ -76,8 +77,8 @@ func MenuSetupConfig() { } func VerifyErrorsProjectWithStore(list type_clickup.ListResponse) { - VerifySubtask(list, int(enum_clickup_type_consulting.EPIC), int(enum_clickup_type_consulting.STORE)) - VerifySubtask(list, int(enum_clickup_type_consulting.STORE), int(enum_clickup_type_consulting.TASK)) + VerifySubtask(list, int(enum_clickup_type_ps_hierarchy.EPIC), int(enum_clickup_type_ps_hierarchy.STORE)) + VerifySubtask(list, int(enum_clickup_type_ps_hierarchy.STORE), int(enum_clickup_type_ps_hierarchy.TASK)) VerifyTasks(list) } @@ -87,7 +88,7 @@ func VerifyTasks(list type_clickup.ListResponse) { for { - tasks, err := service_clickup.ReturnTasks(list.Id, int(enum_clickup_type_consulting.TASK), page) + tasks, err := service_clickup.ReturnTasks(list.Id, int(enum_clickup_type_ps_hierarchy.TASK), page) if err != nil { fmt.Println("Error VerifyTasks :: ", err.Error()) @@ -179,9 +180,9 @@ func VerifySubtask(list type_clickup.ListResponse, customFieldTypeConsulting int } if len(task.SubTasks) == 0 { - fmt.Println(enum_clickup_type_consulting.ToString(customFieldTypeConsulting), + fmt.Println(enum_clickup_type_ps_hierarchy.ToString(customFieldTypeConsulting), " Without ", - enum_clickup_type_consulting.ToString(customFieldTypeConsultingSubTask), + enum_clickup_type_ps_hierarchy.ToString(customFieldTypeConsultingSubTask), " :: ", variables_global.Customer.IntegrationName, " :: ", task.Name, " :: ", strings.ToLower(task.Status.Status), " :: ", task.Url, " :: ", service_clickup.RetAssigness(task.Assignees)) @@ -200,7 +201,7 @@ func VerifySubtask(list type_clickup.ListResponse, customFieldTypeConsulting int // " :: ", service_clickup.RetAssigness(task.Assignees)) // } - if customFieldTypeConsulting == int(enum_clickup_type_consulting.STORE) && variables_global.Customer.CheckTagsValidationStory != "" { + if customFieldTypeConsulting == int(enum_clickup_type_ps_hierarchy.STORE) && variables_global.Customer.CheckTagsValidationStory != "" { if !service_clickup.CheckTags(task.Tags, variables_global.Customer.CheckTagsValidationStory) { fmt.Println("Story without TAGS", " :: ", variables_global.Customer.IntegrationName, " :: ", task.Name, " :: ", strings.ToLower(task.Status.Status), " :: ", task.Url, @@ -208,7 +209,7 @@ func VerifySubtask(list type_clickup.ListResponse, customFieldTypeConsulting int } - if task.CustomField.LinkConvisoPlatform == "" || !strings.Contains(task.CustomField.LinkConvisoPlatform, "/projects/") { + if task.CustomField.PSConvisoPlatformLink == "" || !strings.Contains(task.CustomField.PSConvisoPlatformLink, "/projects/") { fmt.Println("Story without Conviso Platform URL: ", " :: ", variables_global.Customer.IntegrationName, " :: ", task.Name, " :: ", strings.ToLower(task.Status.Status), " :: ", task.Url, @@ -229,9 +230,9 @@ func VerifySubtask(list type_clickup.ListResponse, customFieldTypeConsulting int fmt.Println( subTask.Name, " should be ", - enum_clickup_type_consulting.ToString(customFieldTypeConsultingSubTask), + enum_clickup_type_ps_hierarchy.ToString(customFieldTypeConsultingSubTask), " but is ", - enum_clickup_type_consulting.ToString(customFieldsSubTask), + enum_clickup_type_ps_hierarchy.ToString(customFieldsSubTask), " :: ", variables_global.Customer.IntegrationName, " :: ", subTask.Name, " :: ", strings.ToLower(subTask.Status.Status), @@ -249,12 +250,39 @@ func VerifySubtask(list type_clickup.ListResponse, customFieldTypeConsulting int } +func ListStoryInProgress(list type_clickup.ListResponse) { + page := 0 + + for { + tasks, err := service_clickup.ReturnTasksByStatus(list.Id, enum_clickup_type_ps_hierarchy.STORE, enum_clickup_statuses.IN_PROGRESS, page) + + if err != nil { + fmt.Println("Error ListStoryInProgress :: ", err.Error()) + return + } + + for i := 0; i < len(tasks.Tasks); i++ { + fmt.Println("Story In Progress", + " :: ", variables_global.Customer.IntegrationName, + " :: ", tasks.Tasks[i].Name, + " :: ", tasks.Tasks[i].Url, + " :: ", service_clickup.RetAssigness(tasks.Tasks[i].Assignees)) + } + + if tasks.LastPage { + break + } + + page++ + } +} + func UpdateProjectWithStore(list type_clickup.ListResponse) { - UpdateSubtask(list, enum_clickup_type_consulting.TASK, enum_clickup_type_consulting.STORE) - UpdateSubtask(list, enum_clickup_type_consulting.STORE, enum_clickup_type_consulting.EPIC) + UpdateTask(list, enum_clickup_type_ps_hierarchy.TASK, enum_clickup_type_ps_hierarchy.STORE) + UpdateTask(list, enum_clickup_type_ps_hierarchy.STORE, enum_clickup_type_ps_hierarchy.EPIC) } -func UpdateSubtask(list type_clickup.ListResponse, typeConsultingTask int, typeConsultingParent int) { +func UpdateTask(list type_clickup.ListResponse, typeConsultingTask int, typeConsultingParent int) { page := 0 for { @@ -288,6 +316,14 @@ func UpdateSubtask(list type_clickup.ListResponse, typeConsultingTask int, typeC continue } + if taskParent.CustomField.PSProjectHierarchy != typeConsultingParent { + fmt.Println( + taskParent.Id, " :: ", taskParent.Name, " :: ", taskParent.Url, + " :: ", " isn't type ", enum_clickup_type_ps_hierarchy.ToString(typeConsultingParent), + ) + continue + } + var requestTask type_clickup.TaskRequestStore requestTask.Status = taskParent.Status.Status requestTask.DueDate, _ = strconv.ParseInt(taskParent.DueDate, 10, 64) @@ -328,10 +364,10 @@ func UpdateSubtask(list type_clickup.ListResponse, typeConsultingTask int, typeC allTaskDone = false } - if taskParent.CustomField.TypeConsulting == enum_clickup_type_consulting.STORE && - taskParent.CustomField.LinkConvisoPlatform != "" && convisoPlatformProject.Id == "" { + if taskParent.CustomField.PSProjectHierarchy == enum_clickup_type_ps_hierarchy.STORE && + taskParent.CustomField.PSConvisoPlatformLink != "" && convisoPlatformProject.Id == "" { - projectId, err := service_conviso_platform.RetProjectIdCustomField(taskParent.CustomField.LinkConvisoPlatform) + projectId, err := service_conviso_platform.RetProjectIdCustomField(taskParent.CustomField.PSConvisoPlatformLink) if err == nil { convisoPlatformProject, err = service_conviso_platform.GetProject(projectId) @@ -378,7 +414,7 @@ func UpdateSubtask(list type_clickup.ListResponse, typeConsultingTask int, typeC } } -func UpdateClickUpConvisoPlatform(justVerify bool) { +func MainAction(mainAction int) { fmt.Println("...Starting ClickUp Automation...") for i := 0; i < len(variables_global.Config.Integrations); i++ { @@ -395,15 +431,15 @@ func UpdateClickUpConvisoPlatform(justVerify bool) { variables_global.Customer = variables_global.Config.Integrations[i] - if justVerify { + switch mainAction { + case enum_main_action.TASKS_VERIFY: VerifyErrorsProjectWithStore(list) - //return - } - - if !justVerify { + case enum_main_action.TASKS_UPDATE: UpdateProjectWithStore(list) - //return + case enum_main_action.TASKS_INPROGRESS: + ListStoryInProgress(list) } + fmt.Println("Finish: ", time.Now().Format("2006-01-02 15:04:05")) } @@ -425,7 +461,6 @@ func MenuSearchConvisoPlatform() { } switch input { case 0: - break case 1: service_conviso_platform.InputSearchRequimentsPlatform() case 2: @@ -539,7 +574,7 @@ func CreateProject() { customFieldPSHierarchy := type_clickup.CustomFieldRequest{ variables_constant.CLICKUP_CUSTOM_FIELD_PS_HIERARCHY, - strconv.Itoa(enum_clickup_type_consulting.STORE), + strconv.Itoa(enum_clickup_type_ps_hierarchy.STORE), } customFieldPSTeam := type_clickup.CustomFieldRequest{ @@ -606,7 +641,7 @@ func CreateProject() { customFieldTypeConsultingSubTask := type_clickup.CustomFieldRequest{ variables_constant.CLICKUP_CUSTOM_FIELD_PS_HIERARCHY, - strconv.Itoa(enum_clickup_type_consulting.TASK), + strconv.Itoa(enum_clickup_type_ps_hierarchy.TASK), } customFieldsSubTask := []type_clickup.CustomFieldRequest{ @@ -685,13 +720,9 @@ func main() { SetDefaultValue() - //service_clickup.RetCustomFieldCustomerPosition() - - // fmt.Println(variables_constant.CLICKUP_TOKEN_NAME + " " + os.Getenv(variables_constant.CLICKUP_TOKEN_NAME)) - // fmt.Println(variables_constant.CONVISO_PLATFORM_TOKEN_NAME + " " + os.Getenv(variables_constant.CONVISO_PLATFORM_TOKEN_NAME)) - - integrationJustVerify := flag.Bool("iv", false, "Verify if clickup tasks is ok") - integrationUpdateTasks := flag.Bool("iu", false, "Update Conviso Platform and ClickUp Tasks") + integrationJustVerify := flag.Bool("tv", false, "Verify if clickup tasks is ok") + integrationUpdateTasks := flag.Bool("tu", false, "Update Conviso Platform and ClickUp Tasks") + integrationListTasksInProgress := flag.Bool("tsip", false, "List Clickup Stories In Progress") deploy := flag.Bool("d", false, "See info about deploys") version := flag.Bool("v", false, "Script Version") @@ -705,12 +736,17 @@ func main() { flag.Parse() if *integrationJustVerify { - UpdateClickUpConvisoPlatform(true) + MainAction(enum_main_action.TASKS_VERIFY) os.Exit(0) } if *integrationUpdateTasks { - UpdateClickUpConvisoPlatform(false) + MainAction(enum_main_action.TASKS_UPDATE) + os.Exit(0) + } + + if *integrationListTasksInProgress { + MainAction(enum_main_action.TASKS_INPROGRESS) os.Exit(0) } diff --git a/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-linuxAMD64.tar.xz b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-linuxAMD64.tar.xz new file mode 100644 index 0000000..88970d7 Binary files /dev/null and b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-linuxAMD64.tar.xz differ diff --git a/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-macOSARM64.tar.xz b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-macOSARM64.tar.xz new file mode 100644 index 0000000..e4f4a3a Binary files /dev/null and b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-macOSARM64.tar.xz differ diff --git a/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-macOSIntel.tar.xz b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-macOSIntel.tar.xz new file mode 100644 index 0000000..b3b8bb9 Binary files /dev/null and b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-macOSIntel.tar.xz differ diff --git a/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-windowsAMD64.tar.xz b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-windowsAMD64.tar.xz new file mode 100644 index 0000000..e217801 Binary files /dev/null and b/integration_platform_clickup_go/releases/IntegrationPlatformClickup-v01.00.06-windowsAMD64.tar.xz differ diff --git a/integration_platform_clickup_go/services/service_clickup/service_clickup.go b/integration_platform_clickup_go/services/service_clickup/service_clickup.go index ed34390..f7b759f 100755 --- a/integration_platform_clickup_go/services/service_clickup/service_clickup.go +++ b/integration_platform_clickup_go/services/service_clickup/service_clickup.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "integration_platform_clickup_go/types/type_clickup" + "integration_platform_clickup_go/types/type_enum/enum_clickup_ps_team" "integration_platform_clickup_go/utils/functions" "integration_platform_clickup_go/utils/variables_constant" "integration_platform_clickup_go/utils/variables_global" @@ -90,35 +91,35 @@ func RetCustomFieldUrlConviso(customFields []type_clickup.CustomField) string { return "" } -// func RetCustomFieldPSTeam(customFields []type_clickup.CustomField) string { -// for i := 0; i < len(customFields); i++ { -// if customFields[i].Id == variables_constant.CLICKUP_CUSTOM_FIELD_PS_TEAM_ID { -// if customFields[i].Value == nil { -// return "" -// } else { -// return enum_clickup_ps_team.ToString(int(customFields[i].Value.(float64))) -// } -// } -// } -// return "" -// } +func RetCustomFieldPSTeam(customFields []type_clickup.CustomField) string { + for i := 0; i < len(customFields); i++ { + if customFields[i].Id == variables_constant.CLICKUP_CUSTOM_FIELD_PS_TEAM_ID { + if customFields[i].Value == nil { + return "" + } else { + return enum_clickup_ps_team.ToString(int(customFields[i].Value.(float64))) + } + } + } + return "" +} -// func RetCustomFieldPSCustomer(customFields []type_clickup.CustomField) string { -// for i := 0; i < len(customFields); i++ { -// if customFields[i].Id == variables_constant.CLICKUP_CUSTOM_FIELD_PS_CUSTOMER_ID { -// if customFields[i].Value == nil { -// return "" -// } else { -// if len(customFields[i].TypeConfig.Options) > int(customFields[i].Value.(float64)) { -// return customFields[i].TypeConfig.Options[int(customFields[i].Value.(float64))].Name -// } else { -// return "" -// } -// } -// } -// } -// return "" -// } +func RetCustomFieldPSCustomer(customFields []type_clickup.CustomField) string { + for i := 0; i < len(customFields); i++ { + if customFields[i].Id == variables_constant.CLICKUP_CUSTOM_FIELD_PS_CUSTOMER_ID { + if customFields[i].Value == nil { + return "" + } else { + if len(customFields[i].TypeConfig.Options) > int(customFields[i].Value.(float64)) { + return customFields[i].TypeConfig.Options[int(customFields[i].Value.(float64))].Name + } else { + return "" + } + } + } + } + return "" +} func RetCustomFieldTypeConsulting(customFields []type_clickup.CustomField) int { for i := 0; i < len(customFields); i++ { @@ -251,26 +252,41 @@ func ReturnTasks(listId string, taskType int, page int) (type_clickup.TasksRespo return resultTasks, nil } -// func ReturnLists() (type_clickup.ListsResponse, error) { -// var result type_clickup.ListsResponse +func ReturnTasksByStatus(listId string, taskType int, taskStatuses string, page int) (type_clickup.TasksResponse, error) { + var resultTasks type_clickup.TasksResponse + var urlGetTasks bytes.Buffer -// var urlGetLists bytes.Buffer -// urlGetLists.WriteString(variables_constant.CLICKUP_API_URL_BASE) -// urlGetLists.WriteString("/folder/") -// urlGetLists.WriteString(variables_constant.CLICKUP_FOLDER_CONSULTING_ID) -// urlGetLists.WriteString("/list?archived=false") + intTaskType := strconv.FormatInt(int64(taskType), 10) + strPage := strconv.FormatInt(int64(page), 10) -// request, err := functions.HttpRequestRetry(http.MethodGet, urlGetLists.String(), globalClickupHeaders, nil, *variables_global.Config.ConfclickUp.HttpAttempt) -// if err != nil { -// return result, errors.New("Error ReturnLists: " + err.Error()) -// } + urlGetTasks.WriteString(variables_constant.CLICKUP_API_URL_BASE) + urlGetTasks.WriteString("list/") + urlGetTasks.WriteString(listId) + urlGetTasks.WriteString("/task?custom_fields=[") + urlGetTasks.WriteString("{\"field_id\":\"") + urlGetTasks.WriteString(variables_constant.CLICKUP_CUSTOM_FIELD_PS_HIERARCHY) + urlGetTasks.WriteString("\",\"operator\":\"=\",\"value\":\"") + urlGetTasks.WriteString(intTaskType) + urlGetTasks.WriteString("\"}") + urlGetTasks.WriteString("]") + urlGetTasks.WriteString("&subtasks=true") + urlGetTasks.WriteString("&page=") + urlGetTasks.WriteString(strPage) + urlGetTasks.WriteString("&statuses[]=") + urlGetTasks.WriteString(taskStatuses) + + response, err := functions.HttpRequestRetry(http.MethodGet, urlGetTasks.String(), globalClickupHeaders, nil, *variables_global.Config.ConfclickUp.HttpAttempt) + + if err != nil { + return resultTasks, errors.New("Error ReturnTasks: " + err.Error()) + } -// data, _ := io.ReadAll(request.Body) + data, _ := io.ReadAll(response.Body) -// json.Unmarshal([]byte(string(data)), &result) + json.Unmarshal([]byte(string(data)), &resultTasks) -// return result, nil -// } + return resultTasks, nil +} func ReturnTask(taskId string) (type_clickup.TaskResponse, error) { var task type_clickup.TaskResponse @@ -290,10 +306,10 @@ func ReturnTask(taskId string) (type_clickup.TaskResponse, error) { json.Unmarshal([]byte(string(data)), &task) //add customFields - task.CustomField.TypeConsulting = RetCustomFieldTypeConsulting(task.CustomFields) - task.CustomField.LinkConvisoPlatform = RetCustomFieldUrlConviso(task.CustomFields) - // task.CustomField.Team = RetCustomFieldPSTeam(task.CustomFields) - // task.CustomField.Customer = RetCustomFieldPSCustomer(task.CustomFields) + task.CustomField.PSProjectHierarchy = RetCustomFieldTypeConsulting(task.CustomFields) + task.CustomField.PSConvisoPlatformLink = RetCustomFieldUrlConviso(task.CustomFields) + task.CustomField.PSTeam = RetCustomFieldPSTeam(task.CustomFields) + task.CustomField.PSCustomer = RetCustomFieldPSCustomer(task.CustomFields) return task, nil } diff --git a/integration_platform_clickup_go/services/service_conviso_platform/service_conviso_platform.go b/integration_platform_clickup_go/services/service_conviso_platform/service_conviso_platform.go index 1196240..17ffe29 100755 --- a/integration_platform_clickup_go/services/service_conviso_platform/service_conviso_platform.go +++ b/integration_platform_clickup_go/services/service_conviso_platform/service_conviso_platform.go @@ -12,7 +12,6 @@ import ( "integration_platform_clickup_go/utils/variables_constant" "integration_platform_clickup_go/utils/variables_global" "io" - "io/ioutil" "net/http" "net/url" "os" @@ -270,14 +269,6 @@ const CONVISO_PLATFORM_UPDATE_REQUIREMENTS_ACTIVITY_FINISH = ` } ` -// const CONVISO_PLATFORM_PROJECT_CREATE = ` -// mutation UpdateActivityStatusToStart($input:Int!) -// { -// updateActivityStatusToFinish(input: { activityId: 1 }) { -// input: $input -// ) -// ` - func RetDeploys() { var result type_platform.DeployTypeResponse @@ -314,7 +305,7 @@ func RetDeploys() { fmt.Println("Error RetDeploys ClientDo: ", err.Error()) return } - data, _ := ioutil.ReadAll(resp.Body) + data, _ := io.ReadAll(resp.Body) json.Unmarshal([]byte(string(data)), &result) for i := 0; i < len(result.Data.DeployTypeData.Collection); i++ { @@ -440,7 +431,7 @@ func SearchProjectTypesPlatform(tpSearch string) { fmt.Println("Error SearchProjectTypesPlatform ClientDo: ", err.Error()) return } - data, _ := ioutil.ReadAll(resp.Body) + data, _ := io.ReadAll(resp.Body) json.Unmarshal([]byte(string(data)), &result) for i := 0; i < len(result.Data.ProjectTypes.Collection); i++ { @@ -466,13 +457,11 @@ func SearchProjectTypesPlatform(tpSearch string) { } func InputSearchProjectTypesPlatform() { - //fmt.Print("Enter part of the project type: ") tpSearch := functions.GetTextWithSpace("Enter part of the project type: ") SearchProjectTypesPlatform(tpSearch) } func InputSearchRequimentsPlatform() { - //fmt.Print("Enter part of the requirement: ") reqSearch := functions.GetTextWithSpace("Enter part of the requirement: ") SearchRequimentsPlatform(reqSearch) } @@ -503,7 +492,7 @@ func ConfirmProjectCreate(companyId int, label string) (type_platform.ProjectCol if err != nil { return type_platform.ProjectCollectionResponse{}, errors.New("Error ConfirmProjectCreate ClientDo " + err.Error()) } - data, _ := ioutil.ReadAll(resp.Body) + data, _ := io.ReadAll(resp.Body) json.Unmarshal([]byte(string(data)), &result) @@ -575,7 +564,7 @@ func AddPlatformProject(inputParameters type_platform.ProjectCreateInputRequest) return errors.New("Error AddPlatformProject ClientDo: " + err.Error()) } - ioutil.ReadAll(resp.Body) + io.ReadAll(resp.Body) return nil } @@ -662,7 +651,7 @@ func RetProjectIdCustomField(text string) (int, error) { func UpdateActivityRequirement(task type_clickup.TaskResponse, project type_platform.Project) error { if project.Id != "" { - activityId, error := RetActivityIdCustomField(task.CustomField.LinkConvisoPlatform) + activityId, error := RetActivityIdCustomField(task.CustomField.PSConvisoPlatformLink) if error == nil { idxActivity := slices.IndexFunc(project.Activities, func(a type_platform.ActivityCollectionResponse) bool { return a.Id == strconv.Itoa(activityId) }) diff --git a/integration_platform_clickup_go/types/type_clickup/type_clickup.go b/integration_platform_clickup_go/types/type_clickup/type_clickup.go index d4d326c..c7548ff 100755 --- a/integration_platform_clickup_go/types/type_clickup/type_clickup.go +++ b/integration_platform_clickup_go/types/type_clickup/type_clickup.go @@ -23,11 +23,10 @@ type TaskStatusResponse struct { } type CustomFieldCustomized struct { - TypeConsulting int - Customer string - LinkConvisoPlatform string - //Team []string - Team string + PSProjectHierarchy int + PSCustomer string + PSConvisoPlatformLink string + PSTeam string } type TaskResponse struct { diff --git a/integration_platform_clickup_go/types/type_enum/enum_clickup_statuses/enum_clickup_statuses.go b/integration_platform_clickup_go/types/type_enum/enum_clickup_statuses/enum_clickup_statuses.go new file mode 100644 index 0000000..67d2dec --- /dev/null +++ b/integration_platform_clickup_go/types/type_enum/enum_clickup_statuses/enum_clickup_statuses.go @@ -0,0 +1,7 @@ +package enum_clickup_statuses + +const ( + BACKLOG string = "backlog" + IN_PROGRESS string = "in%20progress" + DONE string = "done" +) diff --git a/integration_platform_clickup_go/types/type_enum/enum_clickup_type_consulting/enum_clickup_type_consulting.go b/integration_platform_clickup_go/types/type_enum/enum_clickup_type_ps_hierarchy/enum_clickup_type_ps_hierarchy.go similarity index 84% rename from integration_platform_clickup_go/types/type_enum/enum_clickup_type_consulting/enum_clickup_type_consulting.go rename to integration_platform_clickup_go/types/type_enum/enum_clickup_type_ps_hierarchy/enum_clickup_type_ps_hierarchy.go index 2f3a878..e6e6f0e 100755 --- a/integration_platform_clickup_go/types/type_enum/enum_clickup_type_consulting/enum_clickup_type_consulting.go +++ b/integration_platform_clickup_go/types/type_enum/enum_clickup_type_ps_hierarchy/enum_clickup_type_ps_hierarchy.go @@ -1,4 +1,4 @@ -package enum_clickup_type_consulting +package enum_clickup_type_ps_hierarchy const ( EPIC int = 0 diff --git a/integration_platform_clickup_go/types/type_enum/enum_main_action/enum_main_action.go b/integration_platform_clickup_go/types/type_enum/enum_main_action/enum_main_action.go new file mode 100644 index 0000000..2c69519 --- /dev/null +++ b/integration_platform_clickup_go/types/type_enum/enum_main_action/enum_main_action.go @@ -0,0 +1,7 @@ +package enum_main_action + +const ( + TASKS_VERIFY int = 0 + TASKS_UPDATE int = 1 + TASKS_INPROGRESS int = 2 +) diff --git a/integration_platform_clickup_go/utils/variables_constant/variables_constant.go b/integration_platform_clickup_go/utils/variables_constant/variables_constant.go index eb1b450..a53eb45 100755 --- a/integration_platform_clickup_go/utils/variables_constant/variables_constant.go +++ b/integration_platform_clickup_go/utils/variables_constant/variables_constant.go @@ -1,6 +1,6 @@ package variables_constant -const VERSION = "1.0.5" +const VERSION = "1.0.6" const CLICKUP_CUSTOM_FIELD_PS_CP_LINK = "9974fcfc-3634-4620-8b89-a9d0b6958ce6" @@ -8,7 +8,7 @@ const CLICKUP_CUSTOM_FIELD_PS_HIERARCHY = "addf1ada-84b4-494c-b640-45d0bb698181" const CLICKUP_CUSTOM_FIELD_PS_TEAM_ID = "ca0056b6-a9fc-45cd-bd89-f7ea3067ebb4" -const CLICKUP_CUSTOM_FIELD_PS_CUSTOMER_ID = "506dc4f1-9c54-4139-b74d-7a1e38994ffa" +const CLICKUP_CUSTOM_FIELD_PS_CUSTOMER_ID = "f3b4ecc4-737b-4040-a75d-664e89ad2f3a" // const CLICKUP_FOLDER_CONSULTING_ID = "114948796"