Closed Bug 1487171 Opened 6 years ago Closed 6 years ago

Allow setting bug flags when creating/updating attachment with API

Categories

(bugzilla.mozilla.org :: API, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kohei, Assigned: kohei)

References

Details

Attachments

(1 file)

45 bytes, text/x-github-pull-request
Details | Review
A request from :janx. On the attachment details web interface, you can set the needinfo flag while updating the attachment’s flags and leaving a comment. The current API allows to leave a comment, but you can’t set needinfo. I’m adding the `bug_flags` param to both the creating an attachment (POST) and updating an attachment (PUT) API methods, so you can do the same thing as the web UI. https://bmo.readthedocs.io/en/latest/api/core/v1/attachment.html
Attached file pull request
This is what :janx said on IRC: I'm trying to use Bugzilla's rest API to do 3 things at once: 1) clear an attachment flag, 2) post a comment, 3) set a needinfo? on someone In this case, the PUT data will looks like this: ```js { flags: [{ name: 'feedback', status: 'X', }], comment: 'Looks good to me. What do you think, Kohei?', bug_flags: [{ name: 'needinfo', status: '?', requestee: 'kohei.yoshino@gmail.com', }], } ```
See Also: → 1350132
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1527178
No longer blocks: 1527178
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: