#1506 Issue metadata cannot be accessed by API
Closed: Fixed Opened by mkosek.

This is a follow up to #1308. I can create an Issue and fill the custom metadata (i.e. not the pre-canned ones). However, I could not retrieve the value neither via libpagure, nor via API directly. See following API call - I cannot see the rhbz field I filled:

r = s.get('https://pagure.io/api/0/ipatool-test/issue/1')
print r.text
{
  "assignee": null,
  "blocks": [],
  "close_status": null,
  "closed_at": null,
  "comments": [
    {
      "comment": "test comment",
      "date_created": "1478178733",
      "edited_on": null,
      "editor": null,
      "id": 39391,
      "notification": false,
      "parent": null,
      "user": {
        "fullname": "Martin Kosek",
        "name": "mkosek"
      }
    }
  ],
  "content": "First Pagure issue",
  "date_created": "1478177960",
  "depends": [],
  "id": 1,
  "milestone": "Backlog",
  "priority": null,
  "private": false,
  "status": "Open",
  "tags": [],
  "title": "First issue",
  "user": {
    "fullname": "Martin Kosek",
    "name": "mkosek"
  }
}

I need to be able to read and update the custom metadata by value, otherwise it is unusable in further automation.


This is currently a blocker for the FreeIPA/SSSD/... ticket synchronization process/tool.

Commit 8001d4e5 fixes this issue

@pingou changed the status to Closed

Retrieving the custom field data now works, I checked with stg.pagure.io!

How do I edit the metadata via API? As I mentioned in the ticket description, I need to be able to both read and edit the issue metadata.

Hm indeed, there is no write access to custom metadata via the API. I'll create a new ticket for this so we do not forget.

New ticket for this issue that Pingou filed: #1607

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

Metadata