Replies: 4 comments 2 replies
-
I should clarify, I'm using the Sprint Points ClickApp for this. I have it enabled for the Space in which the List I am trying to create a task in exists. :) |
Beta Was this translation helpful? Give feedback.
-
Hard for me to say as I can't test it myself. The easiest way to see how it should be structured is to view the API response from a task that is already created with a sprint points value. That should give some idea on the expected structure. Alternatively you can view the networks HTTP requests when you click on adding the sprint point in the UI and see how that is structured. I had a look at the API and don't see any mention of sprint points so I would assume add-ons are a little different? Hard for me to debug this. |
Beta Was this translation helpful? Give feedback.
-
The response returns a I viewed the network request as I updated an existing story's points, and see that it makes a request to:
so I tried updating /**
* Update the sprint points for a task
*
* @param {String} taskId The task id
* @param {Number} points The sprint points estimate
*/
async updatePoints(taskId, points) {
return this._request.put({
endpoint: `${this.route}/${taskId}/pointsEstimate`,
params: {points},
});
} However, using that function returns the error |
Beta Was this translation helpful? Give feedback.
-
I just tried hacking something in by changing the above to: endpoint: `../../tasks/v1/${this.route}/${taskId}/pointsEstimate`, I'm now hitting the right endpoint (i.e. what matches when I use the Clickup web interface). But I get an error:
So ... I'm guessing v1 of the API uses a different auth method/key than v2? |
Beta Was this translation helpful? Give feedback.
-
I'm writing a script to migrate some stories from Pivotal Tracker over to Clickup, and would like to include the sprint points for each new Task I create in CU.
I've tried adding
points: 5
and/orsprint_points: 5
to the data I pass tolists.createTask(id,data)
, but neither of those work.Is this possible at all?
Beta Was this translation helpful? Give feedback.
All reactions