#1508 Project metadata lists (priorities, milestones, ...) cannot be accessed by API
Closed: Fixed Opened by mkosek.

We now have the nice and convenient option to add additional metadata to issues - priorities, milestones, close status (and custom fields - see #1506). However, I cannot retrieve the list of all available values by API, so I then cannot use and show these available values in the FreeIPA/SSSD/... Ticket-Bugzilla synchronization process/tool.


Commit 57a98af5 fixes this issue

@pingou changed the status to Closed

Commit 333854c1 fixes this issue

Yup, it seems to be working well! Thanks!

I just had to use the general project search as I did not find some API call that would get me just one project with a set name:

>>> r = s.get('https://stg.pagure.io/api/0/projects?pattern=ipatool-test') 
>>> r.status_code
200
>>> print r.text
{
  "args": {
    "fork": null,
    "pattern": "ipatool-test",
    "tags": [],
    "username": null
  },
  "projects": [
    {
      "close_status": [
        "invalid",
        "duplicate"
      ],
      "custom_keys": [
        [
          "rhbz",
          "text"
        ]
      ],
      "date_created": "1479739701",
      "description": "Testing project for FreeIPA Ticket Tool synchronization",
      "id": 199,
      "milestones": {
        "Backlog": "",
        "Next": ""
      },
      "name": "ipatool-test",
      "namespace": null,
      "parent": null,
      "priorities": {
        "": "",
        "1": "trivial",
        "2": "minor",
        "3": "major",
        "4": "critical",
        "5": "blocker"
      },
      "tags": [],
      "user": {
        "fullname": "Martin Kosek",
        "name": "mkosek"
      }
    }
  ],
  "total_projects": 1
}

New ticket for this issue that Pingou filed: #1608

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

Metadata