#2111 Allow to update issue milestones from API
Closed: Fixed 7 years ago Opened 7 years ago by mbasti.

I failed to find method how to update issue milestone from API. If API supports this could please point me to right place? if API doesn't support it (I received information on #pagure channel that this is not supported) please consider this as RFE :)


Metadata Update from @lslebodn:
- Issue tagged with: IDM

7 years ago

Even If may try to contribute, how should API looks like?

    POST /api/0/<repo>/issue/<issue id>/attributes/<attr_name> # milestone
    POST /api/0/<namespace>/<repo>/issue/<issue id>/attributes/<attr_name> # milestone

    POST /api/0/<repo>/issue/<issue id>/milestone
    POST /api/0/<namespace>/<repo>/issue/<issue id>/milestone

I guess I would go for the later one, it means more functions (one for property, one for milestone, one for blocks and one for depends) but it's what is the most in line with our current schema.

The first approach is tempting though. What do you think of it?

Metadata Update from @pingou:
- Issue tagged with: RFE

7 years ago

Probably the second to keep consistency.

Metadata Update from @pingou:
- Issue assigned to mbasti

7 years ago

Fixed by @mbasti in https://pagure.io/pagure/pull-request/2124

(though there is one thing missing: add the new endpoint to the API doc itself)

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

7 years ago

@mbasti hoped that there is automation in API docs

Login to comment on this ticket.

Metadata