feature: add ability to assign tasks
This commit is contained in:
10
web/src/shared/graphql/assignTask.graphqls
Normal file
10
web/src/shared/graphql/assignTask.graphqls
Normal file
@ -0,0 +1,10 @@
|
||||
mutation assignTask($taskID: UUID!, $userID: UUID!) {
|
||||
assignTask(input: {taskID: $taskID, userID: $userID}) {
|
||||
assigned {
|
||||
userID
|
||||
firstName
|
||||
lastName
|
||||
}
|
||||
taskID
|
||||
}
|
||||
}
|
@ -1,6 +1,15 @@
|
||||
query findProject($projectId: String!) {
|
||||
findProject(input: { projectId: $projectId }) {
|
||||
name
|
||||
members {
|
||||
userID
|
||||
firstName
|
||||
lastName
|
||||
profileIcon {
|
||||
url
|
||||
initials
|
||||
}
|
||||
}
|
||||
taskGroups {
|
||||
taskGroupID
|
||||
name
|
||||
@ -9,6 +18,7 @@ query findProject($projectId: String!) {
|
||||
taskID
|
||||
name
|
||||
position
|
||||
description
|
||||
}
|
||||
}
|
||||
}
|
||||
|
20
web/src/shared/graphql/findTask.graphqls
Normal file
20
web/src/shared/graphql/findTask.graphqls
Normal file
@ -0,0 +1,20 @@
|
||||
query findTask($taskID: UUID!) {
|
||||
findTask(input: {taskID: $taskID}) {
|
||||
taskID
|
||||
name
|
||||
description
|
||||
position
|
||||
taskGroup {
|
||||
taskGroupID
|
||||
}
|
||||
assigned {
|
||||
userID
|
||||
firstName
|
||||
lastName
|
||||
profileIcon {
|
||||
url
|
||||
initials
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,12 +1,10 @@
|
||||
query getProjects {
|
||||
organizations {
|
||||
projects {
|
||||
projectID
|
||||
name
|
||||
teams {
|
||||
team {
|
||||
teamID
|
||||
name
|
||||
projects {
|
||||
name
|
||||
projectID
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
9
web/src/shared/graphql/me.graphqls
Normal file
9
web/src/shared/graphql/me.graphqls
Normal file
@ -0,0 +1,9 @@
|
||||
query me {
|
||||
me {
|
||||
firstName
|
||||
lastName
|
||||
profileIcon {
|
||||
initials
|
||||
}
|
||||
}
|
||||
}
|
5
web/src/shared/graphql/updateTaskDescription.graphqls
Normal file
5
web/src/shared/graphql/updateTaskDescription.graphqls
Normal file
@ -0,0 +1,5 @@
|
||||
mutation updateTaskDescription($taskID: UUID!, $description: String!) {
|
||||
updateTaskDescription(input: {taskID: $taskID, description: $description}) {
|
||||
taskID
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user