I know how to assign an issue to a given sprint id, is it possible using REST API to assign to the latest sprint without specifying it in the post call ?
Thank you in advance
Ofer.
Hi Ofer,
I believe you can do that. It should be something like:
It should be the following URL using PUT
http://localhost:8080/rest/greenhopper/1.0/sprint/rank
And your JSON should be something like:
{"idOrKeys":["TST-2"],"customFieldId":10009,"sprintId":4,"addToBacklog":false}
Where:
idOrKeys is the issue key
customFieldId is the ID of your Rank custom field
sprintId is the ID of the sprint
addToBacklog needs to be false since you are adding the issue to a sprint
To retrieve the Rank custom field ID please go to _Custom Fields_ page in Admin and view the custom field information. You will see the customfield ID in the URL.
I hope this helps.
Cheers,
Clarissa.
Hi Ofer,
I'm afraid that's not possible, you will have to use the Sprint ID in the API call.
Cheers,
Clarissa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Clarissa,
Thank you for your quick reply,
I do know how to assign to a sprint, my question was, how can i assign to the latest sprint, WITHOUT specifying which sprint it is.
Just using something like LatestSprint()
Cheers,
Ofer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.