Skip to content

Commit

Permalink
playbook to requirement id (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
zani0x03 authored Jan 8, 2024
1 parent c9c5a18 commit 4781b14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions integration_platform_clickup_go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func MainMenu() {
}

func CreateProject() {
playbookIds := ""
requirementIds := ""
typeId := 10
SubTaskReqActivies := "n"

Expand All @@ -414,8 +414,8 @@ func CreateProject() {
return
}

fmt.Print("Playbook (1;2;3): ")
n, err = fmt.Scan(&playbookIds)
fmt.Print("Requirement ID (1;2;3): ")
n, err = fmt.Scan(&requirementIds)
if n < 1 || err != nil {
fmt.Println("Invalid Input")
return
Expand All @@ -430,7 +430,7 @@ func CreateProject() {

createConvisoPlatform := type_platform.ProjectCreateInputRequest{variables_global.Customer.PlatformID,
label, goal, scope, typeId,
functions.ConvertStringToArrayInt(playbookIds),
functions.ConvertStringToArrayInt(requirementIds),
time.Now().Add(time.Hour * 24).Format("2006-01-02"), "1"}

err = service_conviso_platform.AddPlatformProject(createConvisoPlatform)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package variables_constant

const VERSION = "1.0.1"
const VERSION = "1.0.2"

// const CLICKUP_CUSTOMER_FIELD_ID = "4493a404-3ef7-4d7a-91e4-830ebc666353"

Expand All @@ -16,6 +16,8 @@ const CLICKUP_FOLDER_CONSULTING_ID = "114948796"

const CLICKUP_API_URL_BASE = "https://api.clickup.com/api/v2/"

const CLICKUP_TOKEN_NAME = "CLICKUP_TOKEN"

const CONVISO_PLATFORM_API_GRAPHQL = "https://app.convisoappsec.com/graphql"

const CONVISO_PLATFORM_URL_BASE = "https://app.convisoappsec.com/"
Expand Down

0 comments on commit 4781b14

Please sign in to comment.