@@ -91,7 +91,7 @@ teamwork::add_comment() {
9191 return
9292 fi
9393
94- response=$( curl -X " POST" " $TEAMWORK_URI /projects/api/v1/ tasks/$TEAMWORK_TASK_ID /comments.json" \
94+ response=$( curl -X " POST" " $TEAMWORK_URI /tasks/$TEAMWORK_TASK_ID /comments.json" \
9595 -u " $TEAMWORK_API_TOKEN " ' :' \
9696 -H ' Content-Type: application/json; charset=utf-8' \
9797 -d " { \" comment\" : { \" body\" : \" ${body// \" / } \" , \" notify\" : true, \" content-type\" : \" text\" , \" isprivate\" : false } }" )
@@ -108,7 +108,7 @@ teamwork::add_tag() {
108108 fi
109109
110110 if [ " $AUTOMATIC_TAGGING " == true ]; then
111- response=$( curl -X " PUT" " $TEAMWORK_URI /projects/api/v1/ tasks/$TEAMWORK_TASK_ID /tags.json" \
111+ response=$( curl -X " PUT" " $TEAMWORK_URI /tasks/$TEAMWORK_TASK_ID /tags.json" \
112112 -u " $TEAMWORK_API_TOKEN " ' :' \
113113 -H ' Content-Type: application/json; charset=utf-8' \
114114 -d " { \" tags\" : { \" content\" : \" ${tag_name// \" / } \" } }" )
@@ -126,7 +126,7 @@ teamwork::remove_tag() {
126126 fi
127127
128128 if [ " $AUTOMATIC_TAGGING " == true ]; then
129- response=$( curl -X " PUT" " $TEAMWORK_URI /projects/api/v1/ tasks/$TEAMWORK_TASK_ID /tags.json" \
129+ response=$( curl -X " PUT" " $TEAMWORK_URI /tasks/$TEAMWORK_TASK_ID /tags.json" \
130130 -u " $TEAMWORK_API_TOKEN " ' :' \
131131 -H ' Content-Type: application/json; charset=utf-8' \
132132 -d " { \" tags\" : { \" content\" : \" ${tag_name// \" / } \" },\" removeProvidedTags\" :\" true\" }" )
0 commit comments